How to add /afix and /aheal
#4

Код:
if(strcmp(cmd, "/afix", true) == 0) 
{
      new vehicleid = GetPlayerVehicleID(playerid);
       if(IsPlayerInVehicle(playerid, vehicleid))
       {
       		SetVehicleHealth(vehicleid,1000.0);
            RepairVehicle(GetPlayerVehicleID(playerid));
			PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
       		GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~r~Your ~g~Vehicle ~y~Fixed!",1000,3);
	   }
else return SendClientMessage(playerid,COLOR_RED,"ERROR: you are not in any vehicle");
return 1;
}

if(strcmp(cmd, "/aheal", true) == 0) 
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW,"Youhave been healed/armoured");
return 1;
}
I think to Helped You!
Reply


Messages In This Thread
How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:02
Re: How to add /afix and /aheal - by Jafet_Macario - 29.08.2011, 18:04
Re: How to add /afix and /aheal - by =WoR=Varth - 29.08.2011, 18:07
Re: How to add /afix and /aheal - by HotPlayer - 29.08.2011, 18:10
Re: How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:11
Re: How to add /afix and /aheal - by Kobatz - 29.08.2011, 18:13
Re: How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:15
Re: How to add /afix and /aheal - by [MG]Dimi - 29.08.2011, 18:18
Re: How to add /afix and /aheal - by maikel saliba - 29.08.2011, 18:22
Re: How to add /afix and /aheal - by Kingunit - 29.08.2011, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)