if (strcmp(\"/evés\", cmdtext, true, 10) == 0){ IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)SetPlayerHealth(playerid,100);return 1;}
if (strcmp(\"/fegyver gránát\", cmdtext, true, 10) == 0){ IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)ResetPlayerWeapons xy GivePlayerWeapons xyreturn 1;}
#define TEAM_AMCSI 0#define TEAM_OROSZ 1public OnPlayerRequestClass(playerid, classid){SetPlayerCameraPos(playerid, 1654.6665, -1664.4901, 22.1034); // kamera pozíció megadása SetPlayerCameraLookAt(playerid, 1653.8076, -1660.0526, 22.5156); // merrefelé nézzen a kamera (ajánlott a játékos pozíciója) SetPlayerPos(playerid, 1653.8076,-1660.0526,22.5156); // játékos pozíciója SetPlayerFacingAngle(playerid, 180); // játékos nézõszöge ApplyAnimation(playerid,\"PARK\",\"WEAPON_throw\",4.0,1,0,0,0,-1); SetPlayerClass(playerid, classid);gPlayerClass[playerid] = classid;switch (classid) { case 0: { GameTextForPlayer(playerid, \"~b~Amerikai\", 500, 6); }case 1: { GameTextForPlayer(playerid, \"~r~Szovjet\", 500, 6); } }return 1;}public OnPlayerSpawn(playerid){SetPlayerInterior(playerid,0);if(gTeam[playerid] == TEAM_AMCSI){SetPlayerPos(playerid, 294.9058,1930.4944,17.6406);SetPlayerColor(playerid,COLOR_BLUE); // Lime GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 22, 250); GivePlayerWeapon(playerid, 31, 500); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 16, ;}if(gTeam[playerid] == TEAM_OROSZ){SetPlayerPos(playerid, -126.3422775,974.5765991,19.851);SetPlayerColor(playerid,COLOR_RED); // PinkGivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 22, 250); GivePlayerWeapon(playerid, 31, 500); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 16, ;}return 1;
public OnPlayerClickPlayer(playerid, clickedplayerid, source){return 1;}SetPlayerClass(playerid, classid) {if(classid == 0 || classid == 1 || classid == 2) {gTeam[playerid] = TEAM_AMCSI;} else if(classid == 3 || classid == 4 || classid == 5) {gTeam[playerid] = TEAM_OROSZ;} }
if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z){SetPlayerHealth(playerid,100);return 1;}
if (strcmp(\"/fegyver gránát\", cmdtext, true, 10) == 0){ if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z) { ResetPlayerWeapons xy GivePlayerWeapons xy }return 1;}
Create3DTextLabel(\"Katonai Étkezde\",0x008080FF,298.09832763672,1899.9403076172,17.139101028442,40.0,0); //USACreate3DTextLabel(\"/evés\",0x008080FF,298.09832763672,1899.9403076172,17.039101028442,40.0,0); //USACreate3DTextLabel(\"Katonai Étkezde\",0x008080FF,-134.23826599121,1048.8264160156,19.86208152771,40.0,0); //RUSCreate3DTextLabel(\"/evés\",0x008080FF,-134.23826599121,1048.8264160156,19.76208152771,40.0,0); //RUSCreate3DTextLabel(\"Fegyver Raktár\",0x008080FF,288.70947265625,1932.7875976563,17.139101028442,40.0,0); //USACreate3DTextLabel(\"/kasztváltás\",0x008080FF,288.70947265625,1932.7875976563,17.039101028442,40.0,0); //USACreate3DTextLabel(\"Fegyver Raktár\",0x008080FF,-126.34227752686,974.57659912109,19.8515625,40.0,0); //RUSCreate3DTextLabel(\"/kasztváltás\",0x008080FF,-126.34227752686,974.57659912109,19.7515625,40.0,0); //RUS
public OnPlayerCommandText(playerid, cmdtext[]){ return 1;}