Posts: 223
Threads: 50
Joined: Jan 2013
Reputation:
0
Anyone knows how to make for players which aren't spaned or them they can't use commands? If so please give me the code since im looking everywhere but can't find.
thnx in advance migu3x.
Posts: 195
Threads: 14
Joined: Oct 2010
Sorry, could you explain in more detail, I'm not quite understanding.
Posts: 223
Threads: 50
Joined: Jan 2013
Reputation:
0
When player isn't spawned and does.. /sync or /kill tell them, you cant use while not spawned
Posts: 195
Threads: 14
Joined: Oct 2010
DrDoom your methods appear outdated, I'm going to assume you are going to use a command processor like zcmd or similar.
pawn Код:
new bool:spawned[MAX_PLAYERS] = false;
OnPlayerSpawn(playerid..)
{
spawned[playerid]=true;
}
OnPlayerCommandPerformed(playerid.....)
{
if(spawned[playerid] == false) return SendClientMessage(playerid, -1, "You need to login/spawn before you can use commands.");;
return1;
}
Something like that would be more efficient.
Posts: 223
Threads: 50
Joined: Jan 2013
Reputation:
0
where it sas your commands, what do i put? im using zcmd
Posts: 223
Threads: 50
Joined: Jan 2013
Reputation:
0
where do I put the if statements?