Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: please
1. [INNE] Zkraszowany chat prosze o szybką please He!p me!
Witam,
Mam problem a poniewa? gdy napisze co? ma czacie to zapami?tuje m?j nick i u?ywa go dla innych graczy lub gorzej
pisze naprzyk?ad BlackBourn Fire [Admin] ID : 1 : elo i pisze to fire a nie ja
Lub jak ja napisze to jest nick kogo? innego xD
Funkcja
Kod:


public OnPlayerText(playerid, text[])
{
new Gname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Gname,sizeof(Gname));
new Ranga = RangaAdmina[playerid];
new wiadomosc[500];
//new wiadomosc1[506];
new RangaText[64];
if(Ranga == 0){RangaText = "{FFFFFF}[Gracz]";}
if(Ranga == 1){RangaText = "{66FF00}[VIP]";}
if(Ranga == 2){RangaText = "{FF6633}[Moderator]";}
if(Ranga == 3){RangaText = "{FF858B}[JuniorAdmin]";}
if(Ranga == 4){RangaText = "{716EFF}[Mapper]";}
if(Ranga == 5){RangaText = "{FF855C}[Admin]";}
if(Ranga == 6){RangaText = "{FFFF33}[HeadAdmin]";}
format(wiadomosc, sizeof(wiadomosc),"{FF00FF}%s{FFFFFF} %s {FFFFFF} ID: {FFFA00}%d{FFFFFF}: %s",Gname,RangaText,playerid,text);
SendPlayerMessageToAll(GetPlayerColor(playerid), wiadomosc);
return 0;
}

daje tam co jest za pomoc xD

[ Komentarz dodany przez: Oldschool: 2013-08-08, 20:42 ]
Popraw nazw? tematu.