#1

Код:
new artilerytime[MAX_PLAYERS];
Код:
		if(strcmp(cmd, "/fire", true) == 0)
{
			new tmp[32] = "0";
			while(strlen(tmp))
   {
				tmp = strtok(cmdtext, idx);
				if(strlen(tmp) > 0)
			{
				if(artilerytime[playerid] == 1)
			  {
				  artilerytime[playerid] = 1;
					FireStationaryArtillery(strval(tmp));
	        SetTimer("artilerytime2", 60000, 1);
				}
				SendClientMessage(playerid, COLOR_BLUE,"You already shot artilery wait untill it reloads ");
 			  return 1;
			}
      
   }
			return 1;
}
I want to this sets to
Код:
 artilerytime[playerid] = 1;
to its team where the players is when the players uses /fire.
How can i do that?

Код:
				SendClientMessage(playerid, COLOR_BLUE,"Your team already shot artilery wait untill it reloads ");
Something like that
Reply
#2

BUMP
Reply
#3

something like:
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
  {
  if(YourTeamVariable[playerid]=firstteam)
    {
    if(YourTeamVariable[i]=firstteam)
      {
      artilerytime[i]=1;
      }
    }
  else if(YourTeamVariable[playerid]=anotherteam)
    {
    if(YourTeamVariable[i]=anotherteam)
      {
      artilerytime[i]=1;
      }
    }
  }
Reply
#4

Kill the Double Poster !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)