19.03.2014, 13:45
Use it under OnplayerUpdate()
Код:
public OnPlayerUpdate(playerid) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); new vid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vid) == 425 && GetPlayerScore(playerid) < 5000) { SendClientMessage(playerid, 0xFF0000FF, "You need 5000 score to drive the Hunter!"); SetPlayerPos(playerid, X, Y, Z+1); } return 1; }