15.10.2011, 15:22
(
Последний раз редактировалось Kostas'; 15.10.2011 в 16:42.
)
I am trying to make it and add it to my server. But I have some problems.
First of all, I cancel speedboost/flip/jump with car while someone has the Chasecar.
I have the autofix, but when I add the
..to cancel the autofix, I can't because the
And the
..has no
So, I can't cancel the autofix while someone is driving the Chasecar.
Secondly, I tried to make a command, that only admins can use to respawn the Chasecar if it's bugged or someone does something that is against the rules.
I added this
..but, it didn't work, and I should login with Rcon to respawn it.
I don't want with Rcon. I want a cmd that admins level 1+ can use to respawn the car.
And the last thing is that I have on my gamemode on the
So when a player exit the vehicle, it disappears. Should I have this
To cancel it, so when the player left the Chasecar not disappear?
First of all, I cancel speedboost/flip/jump with car while someone has the Chasecar.
I have the autofix, but when I add the
pawn Код:
if( GetPlayerVehicleID(playerid) == ccar || GetPlayerVehicleID(playerid) == ccar ) return 1;
pawn Код:
undefined symbol "playerid"
pawn Код:
public AutoFix()
pawn Код:
public AutoFix(playerid)
Secondly, I tried to make a command, that only admins can use to respawn the Chasecar if it's bugged or someone does something that is against the rules.
I added this
pawn Код:
if(!IsPlayerAdmin(playeird)) return 1; //if they're not an admin, don't let them enter
I don't want with Rcon. I want a cmd that admins level 1+ can use to respawn the car.
And the last thing is that I have on my gamemode on the
pawn Код:
new timer;
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
// new currentveh;
// currentveh = GetPlayerVehicleID(playerid);
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER) {
DestroyVehicle(vehicleid); //thats supposed to be in the timer. no slapping out
}
// TextDrawShowForPlayer(playerid,Cardestroyed);
// SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid);
SetTimerEx("cardestroyedhide", 5000, 0, "i", vehicleid);
}
pawn Код:
if( GetPlayerVehicleID(playerid) == ccar || GetPlayerVehicleID(playerid) == ccar ) return 1;