Posts: 370
Threads: 21
Joined: Jun 2009
Reputation:
0
For me I just did this :
new Spawned[MAX_PLAYERS]; (can go anywhere)
Under > OnPlayerRequestSpawn < put : Spawned[playerid] = 0;
Under > OnPlayerSpawn < put : Spawned[playerid] = 1;
Under > OnPlayerText < put :
if (Spawned[playerid] == 0)
{
SendClientMessage(playerid, 0xFF0000FF, "You need to spawn to talk !");
return 0;
}
and under OnPlayerCommandText put :
if (Spawned[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "You are not spawned !");
{
}
See if that works. I made this today because I was thinking about that too
For the login part, you will have to put Spawned[playerid] = 1) somewhere // 1 means Is Spawned and 0 means isnt spawned.
Posts: 120
Threads: 30
Joined: Oct 2008
Reputation:
0
under OnPlayerText...
Put Your enum, and put if([Player][Logged] == 0) SendClientMessage(playerid, COLOR_RED, "You must be logged in to do that command!"); Under OnPlayerSpawn put something like if([Player][Logged] == 0) Kick(playerid);
XD
Posts: 153
Threads: 12
Joined: Aug 2009
Reputation:
0
oh ok good my friend needed this, Thanks for the answers