24.12.2011, 18:13
Hey i have make a hotwire now i want so when ppl have hotwire the car one time and if ppl type /hotwire again i want so i say this car i already hotwired
cmd
cmd
Код:
}
CMD:hotwire(playerid, params[])
{
new
string[128],
giveplayerid,
vehicleid = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pToolKit] == 1 && PlayerInfo[playerid][pHotWire] == 0)
{
format(string, sizeof(string), "* %s Grabs his/her toolkit and begins to unzip it", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetTimerEx("Hotwire",1000, 0 , "dd", vehicleid, playerid);
SetTimerEx("Hotwire1",3000, 0 , "dd", vehicleid, playerid);
SetTimerEx("Hotwire2",5000, 0 , "dd", vehicleid, playerid);
SetTimerEx("Hotwire3",7000, 0 , "dd", vehicleid, playerid);
SetTimerEx("Hotwire4",9000, 0 , "dd", vehicleid, playerid);
SetTimerEx("SetVehicleEngine",10000, 0, "dd", vehicleid, playerid);
GameTextForPlayer(playerid, "~r~Hotwiring.....", 10000,4);
}
if(PlayerInfo[playerid][pToolKit] == 1 && PlayerInfo[playerid][pHotWire] == 1)
{
SendClientMessage(playerid,COLOR_RED,"You are already hotwiring this car.");
}
if(PlayerInfo[playerid][pToolKit] == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You need a toolkit to hotwire this car");
}
return 1;

