if (strcmp(cmdtext, \"/sawnoff\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,26,5000); GivePlayerWeapon(TEAM_ALL,26,5000); return 1; } if (strcmp(cmdtext, \"/m4\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,31,2500); GivePlayerWeapon(TEAM_ALL,31,2500); return 1; } if (strcmp(cmdtext, \"/uzi\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_132,2500); GivePlayerWeapon(TEAM_ALL,32,2500); return 1; } if (strcmp(cmdtext, \"/combat\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,27,2500); GivePlayerWeapon(TEAM_ALL,27,2500); return 1; } if (strcmp(cmdtext, \"/deagle\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,24,2500); GivePlayerWeapon(TEAM_ALL,24,2500); return 1; }
new fegyo[MAX_PLAYERS];
fegyo[playerid] = 0;
if(fegyo[playerid] != 0) return GivePlayerWeapon(playerid,fegyo[playerid],2500);
if (strcmp(cmdtext, \"/sawnoff\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,26,5000); GivePlayerWeapon(TEAM_ALL,26,5000); fegyo[TEAM_1] = 26; fegyo[TEAM_ALL] = 26; return 1; } if (strcmp(cmdtext, \"/m4\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,31,2500); GivePlayerWeapon(TEAM_ALL,31,2500); fegyo[TEAM_1] = 26; fegyo[TEAM_ALL] = 26; return 1; } if (strcmp(cmdtext, \"/uzi\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_132,2500); GivePlayerWeapon(TEAM_ALL,32,2500); fegyo[TEAM_1] = 26; fegyo[TEAM_ALL] = 26; return 1; } if (strcmp(cmdtext, \"/combat\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,27,2500); GivePlayerWeapon(TEAM_ALL,27,2500); fegyo[TEAM_1] = 26; fegyo[TEAM_ALL] = 26; return 1; } if (strcmp(cmdtext, \"/deagle\", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,24,2500); GivePlayerWeapon(TEAM_ALL,24,2500); fegyo[TEAM_1] = 26; fegyo[TEAM_ALL] = 26; return 1; }