20.10.2011, 17:41
I have a chasecar, I have cancel speedboost/jump/flip and to finish it, I need to cancel the autofix while someone is driving the chasecar. Also, I want to cancel the teleport, but I have no idea how.
Here is the Autofix on OnFilterScriptInit()
And this.
Should I use this but I don't know how to cancel it.
Moreover, there is a fail, that i noticed few days ago. I can teleport with the chasecar. How to make it to SendClientMessage that "You cannot teleport while you are on Chasecar!"
Here is the Autofix on OnFilterScriptInit()
pawn Код:
SetTimer("AutoFix", 1000, true);
pawn Код:
forward AutoFix(playerid);
public AutoFix(playerid)
{
for(new i; i < MAX_PLAYERS; i++)
{
//Code here
}
return 1;
}
pawn Код:
for(new i=0; i<MAX_VEHICLES; i++)
{
if(i == ccar)
{
SetVehicleNumberPlate(i, "ChaseMe");
SetVehicleToRespawn(i);
}
}