[pawn]
new kulcsok[MAX_PLAYERS];
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(kulcsok[playerid] == 1) return 1;
else if(vehicleid == 481) return 1;
else if(vehicleid == 509) return 1;
else if(vehicleid == 510) return 1;
else if(kulcsok[playerid] == 0)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+3);
SendClientMessage(playerid,szín,\"Nincs kulcsod a jármûhöz!\");
}
return 1;
}
[/pawn]
Naplózva