SA-MP Forums Archive
Hide Skill Menu - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hide Skill Menu (/showthread.php?tid=369918)



Hide Skill Menu - CROSS_Hunter - 18.08.2012

when a player first connects to the server and he/she inputs the right password he chooses his skill but when he dies and spawns again the dialog shows again all what i want is to hide the dialog when he spawns but his skill is to be like what he chose when he first connected to the server


Re: Hide Skill Menu - Rudy_ - 18.08.2012

Then move it to
OnPlayerConnect from OnPlayerSpawn


AW: Hide Skill Menu - Tigerkiller - 18.08.2012

or a Simple Veriable

pawn Код:
//Gloabal Veriable
new bool:Spawned[MAX_PLAYERS] = false;

//Under OnPlayerSpawn
if(!Spawned[playerid])
{
    //Your Code goes here
    Spawned[playerid] = true;
}

// OnPlayerDisconnect
Spawned[playerid] = false;