CMD:eweapon1(playerid,params[]) { if (udb_Exists(PlayerName2(playerid))) { PlayerInfo[playerid][Level] = (dUserINT(PlayerName2(playerid)).("Level")); } if(PlayerInfo[playerid][Level] < 6) return SendClientMessage(playerid,COLOR_YELLOW,"You are not allowed to use this command."); if(sscanf(params,"u",params[0])) return SendClientMessage(playerid,COLOR_YELLOW,"[USAGE]: /eweapon1 [weapon id]"); if(params[0] < 0 || params[0] > 42) return SendClientMessage(playerid,COLOR_YELLOW,"[ERROR]: Invalid Weapon Id"); eInfo[eWeaps][0] = params[0]; SendClientMessageToAll(COLOR_YELLOW,"Weapon 1 For Event Have Been Set."); return 1; }
CMD:eweapon1(playerid,params[]) { if (udb_Exists(PlayerName2(playerid))) { PlayerInfo[playerid][Level] = (dUserINT(PlayerName2(playerid)).("Level")); } if(PlayerInfo[playerid][Level] < 6) return SendClientMessage(playerid,COLOR_YELLOW,"You are not allowed to use this command."); if(sscanf(params,"u",params[0])) return SendClientMessage(playerid,COLOR_YELLOW,"[USAGE]: /eweapon1 [weapon id]"); if(params[0] < 0 || params[0] > 42) return SendClientMessage(playerid,COLOR_YELLOW,"[ERROR]: Invalid Weapon Id"); eInfo[eWeaps][0] = params[0]; SendClientMessageToAll(COLOR_YELLOW,"Weapon 1 For Event Have Been Set."); return 1; } |
CMD:eweapon1(playerid,params[]) { if (udb_Exists(PlayerName2(playerid))) { PlayerInfo[playerid][Level] = (dUserINT(PlayerName2(playerid)).("Level")); } if(PlayerInfo[playerid][Level] < 6) return SendClientMessage(playerid,COLOR_YELLOW,"You are not allowed to use this command."); if(sscanf(params,"d",params[0])) return SendClientMessage(playerid,COLOR_YELLOW,"[USAGE]: /eweapon1 [weapon id]"); if(params[0] < 0 || params[0] > 42) return SendClientMessage(playerid,COLOR_YELLOW,"[ERROR]: Invalid Weapon Id"); eInfo[eWeaps][0] = params[0]; SendClientMessageToAll(COLOR_YELLOW,"Weapon 1 For Event Have Been Set."); return 1; } |