26.03.2014, 22:32
I mean by that:
define "teamwork" symbol
and by that:
the first player when he use the command, he will sign that he used it and when the second one use it, the content will happen in this moment.
and:
for the check if 2 players used that command.
and:
to make the the teamwork 0 after the content happen
I have edit in the command:
the new things:
first:
second:
on the command do that:
and the if in command
all:
pawn Код:
new teamwork[MAX_PLAYERS]
and by that:
pawn Код:
teamwork(playerid) = +1;
and:
pawn Код:
if(teamwork(playerid) == 2);
{
and:
pawn Код:
teamwork(playerid) = 0;
I have edit in the command:
the new things:
first:
pawn Код:
new teamwork[MAX_PLAYERS];
new teamwork;
on the command do that:
pawn Код:
teamwork(playerid) = +1;
teamwork = +1;
pawn Код:
if(teamwork(playerid) == 2 && teamwork = 2);
{
teamwork(playerid) = 0;
teamwork = 0;
//the other things
}
pawn Код:
//top of the script
new teamwork[MAX_PLAYERS];
new teamwork;
//the command
CMD:teamwork(playerid,params[])
{
teamwork(playerid) = +1;
teamwork = +1;
if(teamwork(playerid) == 2 && teamwork = 2);
{
teamwork(playerid) = 0;
teamwork = 0;
//the other things (content)
}
}