How can I do?
#2

Make Variables:

Put this on top of the script with the other new's
pawn Код:
new IsLspd[MAX_PLAYERS];
Put this anywhere in the script below "IsLspd[MAX_PLAYERS];" , if you already have "public OnPlayerConnect" then just take the code out.
pawn Код:
public OnPlayerConnect(playerid)
{
   IsLspd[playerid] = 0;
}
Put this anywhere in the script below "IsLspd[MAX_PLAYERS];" , if you already have "public OnPlayerSpawn" then just take the code out.
pawn Код:
public OnPlayerSpawn(playerid)
{
   if(GetPlayerSkin(playerid) == LSPD_SKIN || GetPlayerSkin(playerid) == LSPD_SKIN) // change LSPD_SKIN to the skin id's your using.
   {
       IsLspd[playerid] = 1;
   }
}
Use this anywhere you want.
pawn Код:
if(IsLspd[playerid])
{

}
Reply


Messages In This Thread
How can I do? - by monster010 - 24.06.2009, 15:58
Re: How can I do? - by Stah - 24.06.2009, 16:41

Forum Jump:


Users browsing this thread: 2 Guest(s)