27.10.2010, 18:14
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
AddVehicleComponent(vehicleid, 1010);
NOS = SetTimerEx("NOSGiver", 1000, 1, "i", vehicleid);
}
else if(oldstate == PLAYER_STATE_DRIVER)
{
KillTimer(NOS);
}
return 1;
}
forward NOSGiver(vehicleid);
public NOSGiver(vehicleid)
{
AddVehicleComponent(vehicleid, 1010);
return 1;
}
it doesnt give me errors but nos doesnt work in game!
it works except its not unlimited:/
{
new vehicleid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
AddVehicleComponent(vehicleid, 1010);
NOS = SetTimerEx("NOSGiver", 1000, 1, "i", vehicleid);
}
else if(oldstate == PLAYER_STATE_DRIVER)
{
KillTimer(NOS);
}
return 1;
}
forward NOSGiver(vehicleid);
public NOSGiver(vehicleid)
{
AddVehicleComponent(vehicleid, 1010);
return 1;
}
it doesnt give me errors but nos doesnt work in game!
it works except its not unlimited:/