Chasecar
#1

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
pawn Код:
if( GetPlayerVehicleID(playerid) == ccar || GetPlayerVehicleID(playerid) == ccar ) return 1;
..to cancel the autofix, I can't because the
pawn Код:
undefined symbol "playerid"
And the
pawn Код:
public AutoFix()
..has no
pawn Код:
public AutoFix(playerid)
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
pawn Код:
if(!IsPlayerAdmin(playeird)) return 1; //if they're not an admin, don't let them enter
..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
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);
}
So when a player exit the vehicle, it disappears. Should I have this
pawn Код:
if( GetPlayerVehicleID(playerid) == ccar || GetPlayerVehicleID(playerid) == ccar ) return 1;
To cancel it, so when the player left the Chasecar not disappear?
Reply


Messages In This Thread
Chasecar - by Kostas' - 15.10.2011, 15:22
Re: Chasecar - by Kostas' - 15.10.2011, 16:36
Re: Chasecar - by Wesley221 - 15.10.2011, 16:52
Re: Chasecar - by Kostas' - 15.10.2011, 16:59
Re: Chasecar - by [MWR]Blood - 15.10.2011, 17:35
Re: Chasecar - by Kostas' - 15.10.2011, 19:08
Re: Chasecar - by [MWR]Blood - 15.10.2011, 19:10
Re: Chasecar - by Kostas' - 15.10.2011, 19:18
Re: Chasecar - by Kostas' - 16.10.2011, 13:49

Forum Jump:


Users browsing this thread: 2 Guest(s)