Quote:
Originally Posted by varthshenon
pawn Код:
new Timer[MAX_PLAYERS];
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(KEY_SECONDARY_ATTACK)) { new Float:vX, Float:vY, Float:vZ,vid = GetPlayerVehicleID(playerid); GetVehicleVelocity(vid, vX, vY, vZ); Timer[playerid] = SetTimerEx("ASDQWE",200,1,"dfff",vid,vX,vY,vZ); SendClientMessage(playerid, COLOR_ORANGE,"Cruise control has been enabled!"); } return 1; }
forward ASDQWE(vehicleid,Float:x,Float:y,Float:z); public ASDQWE(vehicleid,Float:x,Float:y,Float:z) return SetVehicleVelocity(vehicleid,x,y,z);
|
Thanks! but where do i put the last 2 lines?
pawn Код:
forward ASDQWE(vehicleid,Float:x,Float:y,Float:z);
public ASDQWE(vehicleid,Float:x,Float:y,Float:z) return SetVehicleVelocity(vehicleid,x,y,z);