29.09.2018, 18:29
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { for(new i=1; i < MAX_VEHICLES; i++) { if(vehdata[i][carexists] == 0) { if(userdata[playerid][license] == 1) return 0; } else { if(userdata[playerid][license] == 0) SetTimerEx("LicenseMSG",5000,0,"i",playerid); } return 1; } GetPlayerName(playerid, playername, sizeof(playername)); if(userdata[playerid][usercodetype] == 7) { if(IsVehicleIsBike(vehicleid)) MyVeh[playerid] = vehicleid; } return 1; } public isPlayerInArea(playerID, Float:data[4]) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerID, X, Y, Z); if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3]) { return 1; } return 0; }
use this.