if (strcmp(cmdtext, \"/sawnoff\", true) == 0) { SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, Sawnoff Shotgun-t a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,26,2700); GivePlayerWeapon(TEAM_ALL,26,2700); fegyo[TEAM_1] = 26; fegyo[TEAM_ALL] = 26; return 1; } if (strcmp(cmdtext, \"/m4\", true) == 0) { SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, M4-et a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,31,2500); GivePlayerWeapon(TEAM_ALL,31,2500); fegyo[TEAM_1] = 31; fegyo[TEAM_ALL] = 31; return 1; } if (strcmp(cmdtext, \"/uzi\", true) == 0) { SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, Tec9-et a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,32,2500); GivePlayerWeapon(TEAM_ALL,32,2500); fegyo[TEAM_1] = 32; fegyo[TEAM_ALL] = 32; return 1; } if (strcmp(cmdtext, \"/combat\", true) == 0) {SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, Combat Shotgun-t a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,27,2500); GivePlayerWeapon(TEAM_ALL,27,2500); fegyo[TEAM_1] = 27; fegyo[TEAM_ALL] = 27; return 1; } if (strcmp(cmdtext, \"/deagle\", true) == 0) { SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, Desert Deagle-t a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,24,2500); GivePlayerWeapon(TEAM_ALL,24,2500); fegyo[TEAM_1] = 24; fegyo[TEAM_ALL] = 24; return 1; }
for(new i = 0; i < GetMaxPlayers(); i++) if(gTeam == TEAM_1) GivePlayerWeapon(i, weaponid, ammo);for(new i = 0; i < GetMaxPlayers(); i++) if(gTeam == TEAM_ALL) GivePlayerWeapon(i, weaponid, ammo);
if (strcmp(cmdtext, \"/uzi\", true) == 0) { SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, Tec9-et a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); if(gTeam == TEAM_1){ ResetPlayerWeapons(TEAM_1); GivePlayerWeapon(TEAM_1,32,2500); fegyo[TEAM_1] = 32; } else if(gTeam == TEAM_ALL) ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_ALL,32,2500); fegyo[TEAM_ALL] = 32; } return 1; }
C:\\Documents and Settings\\admin\\Asztal\\War.pwn(906) : error 017: undefined symbol \"i\"C:\\Documents and Settings\\admin\\Asztal\\War.pwn(910) : error 017: undefined symbol \"i\"C:\\Documents and Settings\\admin\\Asztal\\War.pwn(918) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(921) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(928) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(931) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(934) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(941) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(945) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(947) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(950) : error 010: invalid function or declarationC:\\Documents and Settings\\admin\\Asztal\\War.pwn(956) : error 010: invalid function or declarationPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 12 Errors.
if (strcmp(cmdtext, \"/uzi\", true) == 0) { SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, Tec9-et a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,32,2500); GivePlayerWeapon(TEAM_ALL,32,2500); fegyo[TEAM_1] = 32; fegyo[TEAM_ALL] = 32; ResetPlayerWeapons(TEAM_SPECTATOR); // Egyszerûen csak elvesszük a parancs végén a TEAM SPECTATOR játékosoktól a fegyvereket. fegyo[TEAM_SPECTATOR] = 0; return 1; }
if (strcmp(cmdtext, \"/uzi\", true) == 0) { SendClientMessageToAll(0x375FFFFF,\"Egy Administrator adott, Tec9-et a két harcoló Team-nek!\"); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy {6EF83C}admin{FF0000}!\"); ResetPlayerWeapons(TEAM_1); ResetPlayerWeapons(TEAM_ALL); GivePlayerWeapon(TEAM_1,32,2500); GivePlayerWeapon(TEAM_ALL,32,2500); fegyo[TEAM_1] = 32; fegyo[TEAM_ALL] = 32; GivePlayerWeapon(TEAM_SPECTATOR,32,-2500); //Más ötletem nincs :DD return 1; }
new fegyo[MAX_PLAYERS];
if(fegyo[playerid] != 0) return GivePlayerWeapon(playerid,fegyo[playerid],2500);
#define TEAM_1 0#define TEAM_ALL 1#define TEAM_SPECTATOR 2
for(new i = 0; i < GetMaxPlayers(); i++) if(gTeam == TEAM_SPECTATOR) GivePlayerWeapon(i, 32, -2700);