Posts: 145
Threads: 6
Joined: Jun 2012
Quote:
Originally Posted by Skyrise
Try this.
pawn Код:
new vehTimer[MAX_PLAYERS]; // wherever you put them (usually at the top)
forward vehHackReset(playerid);// The timer. public vehHackReset(playerid) { vehTimer[playerid] = 0; return 1; }
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(vehTimer[playerid] == 1) { // If it equals 1, then this will kick them. Kick(playerid); } vehTimer = 1;// Set it. SetTimerEx("vehHackReset", 4000, 0, "i", playerid);//Give it 4 seconds to reset. return 1; }
|
I didn't notice, but it is SetTimerEx. Sorry for that.