26.03.2015, 08:44
Hello.
So I tried to make a message OnPlayerSpawn which will come just the first time when the player spawns.
I've got here some code:
PPPP = Pokazi-Poruku-prvi-put // Show-Message-First-Time
And i doesn't work. I putted onto on...disconnect to save variable after using but nothing again.
So I tried to make a message OnPlayerSpawn which will come just the first time when the player spawns.
I've got here some code:
PHP код:
new poruka[128],ime[MAX_PLAYER_NAME];
if(PPPP[playerid] == 1) return true;
else if(PPPP[playerid] == 0)
{
{
GetPlayerName(playerid,ime,sizeof(ime));
SendClientMessage(playerid,-1,"=================================================");
SendClientMessage(playerid,-1,"");
format(poruka,sizeof(poruka),"{00C0FF}WG:{FFFFFF} Dobrodosao,"COLOR_SIVA" %s {FFFFFF}na{28C1C9} WilderGaming Roleplay",ime);
SendClientMessage(playerid,-1,poruka);
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Provjerite potpunu listu dostupnih komandi:"COLOR_LAGANA" /komande");
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Uzivajte igraju na nasem serveru"COLOR_SIVA" -"COLOR_SVJETLO_PLAVA2" WG:RP Administracija");
SendClientMessage(playerid,-1,"");
SendClientMessage(playerid,-1,"=================================================");
PPPP[playerid] = 1;
}
}
And i doesn't work. I putted onto on...disconnect to save variable after using but nothing again.