25.11.2012, 19:17
do like this
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(PlayerInfo[playerid][LoggedIn] == 0) // People use this kind of functions :P you must use your own!
{
SendClientMessage(playerid, COLOR_RED,"ERROR: Your not loggedin to get spawn");
return 0;
}
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
/*if (!IsPlayerSpawned(playerid)) we dont need this
{*/
if (!strcmp(cmdtext, "/login", true)) // you forgot to put ! in there
{