need some help
#5

I mean by that:
pawn Код:
new teamwork[MAX_PLAYERS]
define "teamwork" symbol
and by that:
pawn Код:
teamwork(playerid) = +1;
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:
pawn Код:
if(teamwork(playerid) == 2);
{
for the check if 2 players used that command.
and:
pawn Код:
teamwork(playerid) = 0;
to make the the teamwork 0 after the content happen



I have edit in the command:

the new things:

first:
pawn Код:
new teamwork[MAX_PLAYERS];
new teamwork;
second:
on the command do that:
pawn Код:
teamwork(playerid) = +1;
teamwork = +1;
and the if in command
pawn Код:
if(teamwork(playerid) == 2 && teamwork = 2);
{
teamwork(playerid) = 0;
teamwork = 0;
//the other things
}
all:
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)
     }
}
Reply


Messages In This Thread
need some help - by iThePunisher - 26.03.2014, 21:09
Re: need some help - by DerickClark - 26.03.2014, 21:45
Re: need some help - by AhmedMohamed - 26.03.2014, 21:55
Re: need some help - by iThePunisher - 26.03.2014, 22:14
Re: need some help - by AhmedMohamed - 26.03.2014, 22:32
Re: need some help - by iThePunisher - 27.03.2014, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)