Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-11-03, 15:38


__.A.__







Wiek: 30
Na forum: 5171 dni
Posty: 151

Piwa: 855

Respekt: 110
Respekt: 110

Witam posiadm mape PP po w?asnych przer?bkach i mam problem gdy? wchodz? gracze o id wy?szm ni? 70 to si? buguje pasek stanu
i nie pokazuje si? oprucz czarnego t?a.

mam mape ustaione na MAX_PLAYERS 100 tyle co slot?w , wi?c nie w tym problem.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-03, 15:45


GaCeL







Wiek: 33
Na forum: 5593 dni
Posty: 197
Nick w MP: GaCeL

Piwa: 96

Respekt: 45,3

Poka? Kod Paska ...

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-03, 15:50


__.A.__







Wiek: 30
Na forum: 5171 dni
Posty: 151

Piwa: 855

Respekt: 110
Respekt: 110

g?ra mapy

Kod:

new Text:tdStatus[10];

new Text:PunktyEXP[MAX_PLAYERS];
new Text:PoziomGracza[MAX_PLAYERS];
new Text:NazwaGangu[MAX_PLAYERS];
new Text:CzasGry[MAX_PLAYERS];
new Text:NazwaPojazdu[MAX_PLAYERS];
new Text:Statystyka[MAX_PLAYERS];
new Text:MiastoGracza[MAX_PLAYERS];
new Text:KillStreak[MAX_PLAYERS];



w OnGameModeIni
Kod:


for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
{
PunktyEXP[PlayerId] = TextDrawCreate(51.000000, 428.000000, "~b~~h~Punkty EXP ~n~~w~20/24");
TextDrawAlignment(PunktyEXP[PlayerId], 2);
TextDrawBackgroundColor(PunktyEXP[PlayerId], 255);
TextDrawFont(PunktyEXP[PlayerId], 1);

}
TextDrawLetterSize(PunktyEXP[PlayerId], 0.300000, 1.000000);
TextDrawColor(PunktyEXP[PlayerId], -1);
TextDrawSetOutline(PunktyEXP[PlayerId], 1);
TextDrawSetProportional(PunktyEXP[PlayerId], 1);

PoziomGracza[PlayerId] = TextDrawCreate(119.300003, 428.000000, "~b~~h~Level ~n~~w~20");
TextDrawAlignment(PoziomGracza[PlayerId], 2);
TextDrawBackgroundColor(PoziomGracza[PlayerId], 255);
TextDrawFont(PoziomGracza[PlayerId], 1);
TextDrawLetterSize(PoziomGracza[PlayerId], 0.300000, 1.000000);
TextDrawColor(PoziomGracza[PlayerId], -1);
TextDrawSetOutline(PoziomGracza[PlayerId], 1);
TextDrawSetProportional(PoziomGracza[PlayerId], 1);

NazwaGangu[PlayerId] = TextDrawCreate(329.000000, 428.000000, "~b~~h~Gang ~n~~w~VatosLocos");
TextDrawAlignment(NazwaGangu[PlayerId], 2);
TextDrawBackgroundColor(NazwaGangu[PlayerId], 255);
TextDrawFont(NazwaGangu[PlayerId], 1);
TextDrawLetterSize(NazwaGangu[PlayerId], 0.300000, 1.000000);
TextDrawColor(NazwaGangu[PlayerId], -1);
TextDrawSetOutline(NazwaGangu[PlayerId], 1);
TextDrawSetProportional(NazwaGangu[PlayerId], 1);

CzasGry[PlayerId] = TextDrawCreate(254.000000, 428.000000, "~b~~h~Czas Gry ~n~~w~0godz 23min");
TextDrawAlignment(CzasGry[PlayerId], 2);
TextDrawBackgroundColor(CzasGry[PlayerId], 255);
TextDrawFont(CzasGry[PlayerId], 1);
TextDrawLetterSize(CzasGry[PlayerId], 0.300000, 1.000000);
TextDrawColor(CzasGry[PlayerId], -1);
TextDrawSetOutline(CzasGry[PlayerId], 1);
TextDrawSetProportional(CzasGry[PlayerId], 1);

KillStreak[PlayerId] = TextDrawCreate(182.000000, 428.000000, "~b~~h~Multikill ~n~~w~");
TextDrawAlignment(KillStreak[PlayerId], 2);
TextDrawBackgroundColor(KillStreak[PlayerId], 255);
TextDrawFont(KillStreak[PlayerId], 1);
TextDrawLetterSize(KillStreak[PlayerId], 0.300000, 1.000000);
TextDrawColor(KillStreak[PlayerId], -1);
TextDrawSetOutline(KillStreak[PlayerId], 1);
TextDrawSetProportional(KillStreak[PlayerId], 1);

NazwaPojazdu[PlayerId] = TextDrawCreate(586.000000, 428.000000, "~b~~h~Pojazd ~n~~w~MonsterTruck");
TextDrawAlignment(NazwaPojazdu[PlayerId], 2);
TextDrawBackgroundColor(NazwaPojazdu[PlayerId], 255);
TextDrawFont(NazwaPojazdu[PlayerId], 1);
TextDrawLetterSize(NazwaPojazdu[PlayerId], 0.300000, 1.000000);
TextDrawColor(NazwaPojazdu[PlayerId], -1);
TextDrawSetOutline(NazwaPojazdu[PlayerId], 1);
TextDrawSetProportional(NazwaPojazdu[PlayerId], 1);

MiastoGracza[PlayerId] = TextDrawCreate(503.000000, 428.000000, "~b~~h~Miasto ~n~~w~LasVenturas");
TextDrawAlignment(MiastoGracza[PlayerId], 2);
TextDrawBackgroundColor(MiastoGracza[PlayerId], 255);
TextDrawFont(MiastoGracza[PlayerId], 1);
TextDrawLetterSize(MiastoGracza[PlayerId], 0.300000, 1.000000);
TextDrawColor(MiastoGracza[PlayerId], -1);
TextDrawSetOutline(MiastoGracza[PlayerId], 1);
TextDrawSetProportional(MiastoGracza[PlayerId], 1);

Statystyka[PlayerId] = TextDrawCreate(414.000000, 428.000000, "~b~~h~Gracze Serwera ~n~~w~0 ~y~/ 0 ~r~/ 0 ");
TextDrawAlignment(Statystyka[PlayerId], 2);
TextDrawBackgroundColor(Statystyka[PlayerId], 255);
TextDrawFont(Statystyka[PlayerId], 1);
TextDrawLetterSize(Statystyka[PlayerId], 0.300000, 1.000000);
TextDrawColor(Statystyka[PlayerId], -1);
TextDrawSetOutline(Statystyka[PlayerId], 1);
TextDrawSetProportional(Statystyka[PlayerId], 1);

// dalej sa inne tx

}

new Float:posY = 430.0, Float:posX = 2.0;
for(new x=0; x<10; x++)
{
tdStatus[x] = Text:TextDrawCreate(posX, posY, "_");
TextDrawUseBox(tdStatus[x], 1);
TextDrawBoxColor(tdStatus[x], 0x00000017);
TextDrawTextSize(tdStatus[x], 638.000000,30.000000);
TextDrawAlignment(tdStatus[x], 0);
posY += 2.0;
}


w OnPlayerRequestSpawn :


Kod:

for(new x=0;x<10;x++)
TextDrawShowForPlayer(playerid, tdStatus[x]);


w onplayerspawn :


Kod:


TextDrawShowForPlayer(playerid, PunktyEXP[playerid]);
TextDrawShowForPlayer(playerid, PoziomGracza[playerid]);
TextDrawShowForPlayer(playerid, NazwaPojazdu[playerid]);
TextDrawShowForPlayer(playerid, MiastoGracza[playerid]);
TextDrawShowForPlayer(playerid, Statystyka[playerid]);
TextDrawShowForPlayer(playerid, NazwaGangu[playerid]);
TextDrawShowForPlayer(playerid, CzasGry[playerid]);
TextDrawShowForPlayer(playerid, KillStreak[playerid]);


reszta :



Kod:

forward UpdateStat();
public UpdateStat()
{
new String[255], InVeh[32], GangName[32];
new AdminsCount = GetAdminsCount();
new VipsCount = GetVipsCount();
new PlayersCount = GetPlayerCount();

for(new playerid=0;playerid<MAX_PLAYERS;playerid++){
if(IsPlayerConnected(playerid)){

if(!IsPlayerInAnyVehicle(playerid))
format(InVeh, sizeof(InVeh), "---");
else
format(InVeh, sizeof(InVeh), "%s (%d%%)", VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400], GetRealVehicleHealth(playerid));

if(Player[playerid][Gangster] == -1)
format(GangName, sizeof(GangName), "---");
else
format(GangName, sizeof(GangName), "%s", Gang[Player[playerid][Gangster]][Name]);

format(String, sizeof(String), "~b~~h~Punkty EXP ~n~~w~%d/%d", Player[playerid][Exp], GetPlayerNextExp(playerid));
TextDrawSetString(PunktyEXP[playerid], String);

format(String, sizeof(String), "~b~~h~Level ~n~~w~%d", Player[playerid][Level]);
TextDrawSetString(PoziomGracza[playerid], String);

format(String, sizeof(String), "~b~~h~Gang ~n~~w~%s", GangName);
TextDrawSetString(NazwaGangu[playerid], String);

format(String, sizeof(String), "~b~~h~Czas Gry ~n~~w~%d godz %d min", Player[playerid][NowPlayingTime]/3600, (Player[playerid][NowPlayingTime]/60)%60);
TextDrawSetString(CzasGry[playerid], String);

format(String, sizeof(String), "~b~~h~Pojazd ~n~~w~%s", InVeh);
TextDrawSetString(NazwaPojazdu[playerid], String);

format(String, sizeof(String), "~b~~h~Miasto ~n~~w~%s", Player[playerid][CityName]);
TextDrawSetString(MiastoGracza[playerid], String);

format(String, sizeof(String), "~b~~h~Gracze Serwera ~n~~w~%d ~y~/ %d ~r~/ %d", PlayersCount, VipsCount, AdminsCount);
TextDrawSetString(Statystyka[playerid], String);

format(String, sizeof(String), "~b~~h~Multikill ~n~~w~%d", Multikill[playerid]);
TextDrawSetString(KillStreak[playerid], String);

if(Player[playerid][NowPlayingTime]/3600 > ExpPremia[playerid]){
ExpPremia[playerid] ++;
new str[255];
format(str, sizeof str, "{FF0000}›› |info|{8CED15} Gracz {FF0000}%s{8CED15} gra ju? 1 H dodtaje 170 Exp ;) ", Player[playerid][Name]);
SendClientMessageToAll(0x33CCFFAA, str);
WinSound(playerid);
GameTextForPlayer(playerid,"Exp~n~~g~+170", 1000, 1);
Player[playerid][Exp] += 170;
if(Player[playerid][Level] < GetPlayerLevel(playerid))
LevelUp(playerid);
}
}

}

return 1;
}


Postaw piwo autorowi tego posta
 

 
Tagi: pasek :: stanu
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku