Airstrike
#1

http://pastebin.com/d4731a5f3

when i get in one of the planes, it acts like you cant use that plane to airstrike.

also, i have a cmd if you need to see that

Код:
	if(strcmp(cmdtext, "/strike1", true) == 0)
	{
	  if (GetPlayerSkin(playerid) == 287)
	  {
	    new vmodel = GetVehicleModel(playerid);
	    if (vmodel == 476 || vmodel == 519 || vmodel == 553)
	    {
	    //do strike here
			SetTimer("Strike",1000,false);
	    }
	    else
	    {
     	SendClientMessage(playerid,red,"[!] Not in a plane that can do airstrikes.");
	    }
	  }
	 	else
	 	{
    SendClientMessage(playerid,red,"Only Army Can Use Airstrike.");
		}

		return 1;
	}
Reply
#2

Change both
pawn Код:
SetTimer("Strike",1000,false);
to
pawn Код:
SetTimerEx("Strike",1000,false, "i", playerid);
Reply
#3

that does not fx my problem
Reply
#4

Not all of them, but some of the problems...

Change
pawn Код:
new vmodel = GetVehicleModel(playerid);
to
pawn Код:
new vmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)