Some Idea's i wanna add
#6

Then just define the vehicleid
pawn Код:
if(strcmp(cmdtext,"/cargodon",true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return 0;
new vehicleid = GetPlayerVehicleID(playerid);
SetTimerEx("CarGodMode",1000,"i",vehicleid);
return 1;
}

public CarGodMode(vehicleid)
{
SetVehicleHealth(vehicleid,5000);
return 1;
}
Or the alternative to make it for the player and not the vehicle he types it in

pawn Код:
if(strcmp(cmdtext,"/cargodon",true) == 0)
{
SetTimerEx("CarGodMode",1000,"i",playerid);
return 1;
}

public CarGodMode(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return 0;
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,5000);
return 1;
}
Reply


Messages In This Thread
Some Idea's i wanna add - by [KMA]DlennartD - 28.11.2008, 21:57
Re: Some Idea's i wanna add - by Serbish - 28.11.2008, 22:00
Re: Some Idea's i wanna add - by JaTochNietDan - 28.11.2008, 22:01
Re: Some Idea's i wanna add - by [KMA]DlennartD - 28.11.2008, 22:03
Re: Some Idea's i wanna add - by Serbish - 28.11.2008, 22:09
Re: Some Idea's i wanna add - by JaTochNietDan - 28.11.2008, 22:10
Re: Some Idea's i wanna add - by JaTochNietDan - 28.11.2008, 22:17
Re: Some Idea's i wanna add - by Serbish - 28.11.2008, 22:18
Re: Some Idea's i wanna add - by Mikep - 28.11.2008, 22:27
Re: Some Idea's i wanna add - by [KMA]DlennartD - 28.11.2008, 23:09

Forum Jump:


Users browsing this thread: 2 Guest(s)