public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){new name[24];GetPlayerName(playerid,name,24);if(!strfind(name, \"[sajt]\", true) != -1){RemovePlayerFromVehicle(playerid);} return 1;}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){new name[24];GetPlayerName(playerid,name,24);if(vehicleid!=1){if(strfind(name, \"[sajt]\", true) != -1){RemovePlayerFromVehicle(playerid);}} return 1;} public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){new name[24];GetPlayerName(playerid,name,24);if(vehicleid==1){if(strfind(name, \"[sajt]\", true) != -1){RemovePlayerFromVehicle(playerid);}} return 1;}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if(vehicleid == /*jármû id*/){new name[24];GetPlayerName(playerid,name,24);if(!strfind(name, \"[sajt]\", false) != -1){RemovePlayerFromVehicle(playerid);}} return 1;}
if(!strfind(name, \"[sajt]\", false) != -1)
patrik amit te írtál az azokat dobja ki a kocsiból akiknek a nevében benne van a \'[sajt]\' karakterlánc próbáld ki a 2. verziódat úgy hogy mondjuk [sajt]Patrik néven próbálsz meg beszállni a kocsiba xD ((fontos hogy a kocsi id-je az 1-es legyen))
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if(vehicleid == 5 || vehicleid == // Jármû ID-k{ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(strfind(name,\"[sajt]\",true)) // Név \'elõtag\' { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); SetPlayerPos(playerid,x,y,z); SendClientMessage(playerid,0xFF2222FF,\"Nem tartozol a Sajthoz !\"); }} return 1;}
public OnPlayerStateChange(playerid, newstate, oldstate){if(newstate == PLAYER_STATE_DRIVER){new vehicleid = GetPlayerVehicleID(playerid);if(vehicleid == 5 || vehicleid == // Jármû ID-k{ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(strfind(name,\"[sajt]\",true)) // Név \'elõtag\' { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xFF2222FF,\"Nem tartozol a Sajthoz !\"); }}} return 1;}