HELP please /Q
#2

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:

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;
}
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.
Reply


Messages In This Thread
HELP please /Q - by lonako45 - 04.05.2012, 11:29
Re: HELP please /Q - by JaTochNietDan - 04.05.2012, 11:33
Re: HELP please /Q - by lonako45 - 04.05.2012, 11:53
Re: HELP please /Q - by Accord - 04.05.2012, 11:56
Re: HELP please /Q - by JaTochNietDan - 04.05.2012, 11:57
Re: HELP please /Q - by lonako45 - 04.05.2012, 12:01
Re: HELP please /Q - by Accord - 04.05.2012, 12:03
Re: HELP please /Q - by lonako45 - 04.05.2012, 12:06
Re: HELP please /Q - by Accord - 04.05.2012, 12:09
Re: HELP please /Q - by lonako45 - 04.05.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)