24.06.2009, 16:41
Make Variables:
Put this on top of the script with the other new's
Put this anywhere in the script below "IsLspd[MAX_PLAYERS];" , if you already have "public OnPlayerConnect" then just take the code out.
Put this anywhere in the script below "IsLspd[MAX_PLAYERS];" , if you already have "public OnPlayerSpawn" then just take the code out.
Use this anywhere you want.
Put this on top of the script with the other new's
pawn Код:
new IsLspd[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
IsLspd[playerid] = 0;
}
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;
}
}
pawn Код:
if(IsLspd[playerid])
{
}