19.05.2009, 18:01
How do I do that if player isn't logged in he cant spawn and play? please help me?
public OnPlayerRequestSpawn(playerid)
{
if(!_PLAYER_AUTHED_[playerid])
{
SendClientMessage(playerid, _YOUR_COLOR_, "You need to login before you can spawn!");
return 0;
}
return 1;
}
Originally Posted by ·٠•●°Alive°●•٠·
How do I do that if player isn't logged in he cant spawn and play? please help me?
|
Originally Posted by ·٠•●°Alive°●•٠·
No, i just was thinking about, that player cant spawn if he hasn't logged in or registered.
|
public OnPlayerRequestSpawn(playerid)
{
if(pInfo[playerid][Logged] == 0)
{
SendClientMessage(playerid, COLOR_RED, "You can't spawn if you are not logged in");
return 0;
}else{
return 1;
}
return 1;
}
Originally Posted by ·٠•●°Alive°●•٠·
Thanks, I did this:
pawn Код:
|