if (strcmp(cmdtext, \"/nyit\", true)==0){ if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_RED,\"Csak a vezetõ tudja kinyitni az ajtót!\"); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, COLOR_GREEN, \"Autó kinyitva!\"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1056,pX,pY,pZ); } else { SendClientMessage(playerid, COLOR_RED, \"Nem ülsz autóban!\"); } return 1;} if (strcmp(cmdtext, \"/zár\", true)==0){if(IsPlayerInAnyVehicle(playerid)){ new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_RED,\"Csak a vezetõ tudja kinyitni az ajtót!\"); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0); } SendClientMessage(playerid, COLOR_GREEN, \"Autó kinyitva!\"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1057,pX,pY,pZ);}else{ SendClientMessage(playerid, COLOR_RED \"Nem ülsz autóban!\");}return 1;}
if (strcmp(cmdtext, \"/unlock\", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_RED,\"Csak a vezetõ tudja kinyitni az ajtót!\"); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, COLOR_GREEN, \"Autó kinyitva!\"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1056,pX,pY,pZ); } else { SendClientMessage(playerid, COLOR_RED, \"Nem ülsz autóban!\"); } return 1; } if (strcmp(cmdtext, \"/lock\", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_RED,\"Csak a vezetõ tudja kinyitni az ajtót!\"); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0); } SendClientMessage(playerid, COLOR_GREEN, \"Autó kinyitva!\"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1057,pX,pY,pZ); } else { SendClientMessage(playerid, COLOR_RED \"Nem ülsz autóban!\"); } return 1; }
köszDupla hozzászólás automatikusan összefûzve. ( 2011. december 22. - 11:23:14 )csak a színekkel van gond nem ínátok le lédszíves egész fs-be?