if (strcmp(cmdtext, \"/nyit\", true)==0){ if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_YELLOW,\"Csak a sofor tudja bezárni az ajtókat!\"); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, COLOR_YELLOW, \"Jármu bezárva!\"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1056,pX,pY,pZ); } else { SendClientMessage(playerid, COLOR_YELLOW, \"Nem vagy kocsiban!\"); } return 1;} if (strcmp(cmdtext, \"/zár\", true)==0){if(IsPlayerInAnyVehicle(playerid)){ new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_YELLOW,\"Csak a sofor tudja kinyitni az ajtókat!\"); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0); } SendClientMessage(playerid, COLOR_YELLOW, \"Jármu kinyitva!\"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1057,pX,pY,pZ);}else{ SendClientMessage(playerid, COLOR_YELLOW, \"Nem vagy kocsiban!\");}return 1;}
//New-ok közé :new enkocsim; //ide akármit írhatsz , de késobb a többi sorban is írd át .//OnGameModeInit alá . Mivel Ladmin-ba akarod ezért az OnFilterScripInit alá kell raknod !enkocsim = AddStaticVehicle(444,1671.6418,-1685.1484,21.8113,89.8685,159,159); //Ez egy sima jármu berakás .OnPlayerEnterVehicle alá :if( vehicleid == enkocsim ) { if(PlayerInfo[playerid][Level] >= 1) { SendClientMessage(playerid,COLOR_LIME,\"Beszálltál egy adminkocsiba .\"); } else return SendClientMessage(playerid,COLOR_LIGHTRED,\"HIBA: Ez adminkocsi \");ClearAnimations(playerid);