04.05.2012, 11:33
Because ActQ is a global variable that is being set to 0 and there's no way to tell the difference between who used it or not, you need to make an array with cells for each player to store the data for each player, for example:
So then we are using a certain index in the array, specified by "playerid", which stores the unique ID of the player. Now the value is in essence, only relating to a single player.
pawn Код:
new ActQ[MAX_PLAYERS];
if(strcmp(tmp, "q", true) == 0 || strcmp(tmp, "quit", true) == 0)
{
if(activity == 0) return SendClientMessage(playerid, White, "айп фтймеъ оефтмъ");
if(ActQ[playerid] == 0) return SendClientMessage(playerid, White, "лбш йцаъ одфтймеъ");
SpawnPlayer(playerid);
SendClientMessage(playerid,0xd11111ff,"йцаъ одфтймеъ емлп щевшъ");
ActQ[playerid] = 0;
return 1;
}