12.11.2010, 15:36
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
GetPlayerName(playerid,sendername,24);
#if defined LOGIN_BEFORE_SPAWN
if(playerDB[playerid][Authed] == 0)
{
SendClientMessage(playerid,LIGHTBLUE,"[LOGIN] Account is registered, login in order to play.");
return 0;
}
#endif
#if defined REGISTER_BEFORE_SPAWN
if (!udb_Exists(sendername))
{
SendClientMessage(playerid,LIGHTBLUE,"[LOGIN] Account is not registered,register in order to play.");
return 0;
}
#endif
if(GetPlayerSkin(playerid) == 188)
{
GameTextForPlayer(playerid, "~r~Enter the password", 3000, 3);
IsRequestingSpawn[playerid] = 1;
return 0;
}
return 1;
}