Posts: 740
Threads: 63
Joined: Oct 2009
Reputation:
0
Can i make cannot spawn if he is not loged in? i use logged[MAX_PLAYERS];
Posts: 196
Threads: 0
Joined: Nov 2008
Reputation:
0
Then you don`t assigned logged[playerid] properly when you`ve logged in.
Posts: 740
Threads: 63
Joined: Oct 2009
Reputation:
0
ok i made it this is the correct form
public OnPlayerRequestSpawn(playerid)
{
if(!logged[playerid])
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]: You need to login first");
return 0;
}
return 1;
}
Posts: 196
Threads: 0
Joined: Nov 2008
Reputation:
0
That`s formwise as correct as the code in my first post.
Posts: 740
Threads: 63
Joined: Oct 2009
Reputation:
0
but first didn't work:\ anyway thank you guys for helping