26.08.2010, 19:26
Код:
public enterrc (playerid,vehicleid) { new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(vehicleid, vehx, vehy, vehz); if(IsPlayerInRangeOfPoint(playerid, 5, vehx, vehy, vehz)) { if(GetVehicleModel(vehicleid) == 464 | 465 | 501 | 564 | 594) { GetPlayerVehicleSeat(playerid); PutPlayerInVehicle(playerid, vehicleid, 0); return 1; } else return 0; } else return 0; }
What did i do wrong?
Here is the other part:
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED( KEY_SECONDARY_ATTACK )) { SetTimer("enterrc",0,0); } }