CMD:fegyver(playerid, params[]){if(IsPlayerAdmin(playerid)){ new weaponid, string[256], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME]; if(sscanf(params, \"d\", weaponid)) return SendClientMessage(playerid, COLOR_GREEN, \"Használat: /fegyver [fegyverid]\"); if(weaponid > 46) return SendClientMessage(playerid, COLOR_GREEN, \"Maximum 46-os ID-t adhatsz meg!\");GivePlayerWeapon(playerid, weaponid, 100);GetPlayerName(playerid, name, sizeof(name));GetPlayerName(playerid, name2, sizeof(name2));format(string, sizeof(string), \"%s adott %s-nek egy %i IDjü fegyvert!\", name, name2);SendClientMessageToAll(COLOR_GREEN, string);}else SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy admin!\");return 1;}
CMD:fegyver(playerid, params[]){if(IsPlayerAdmin(playerid)){ new weaponid, string[256], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], ammo; if(sscanf(params, \"dd\", weaponid,ammo)) return SendClientMessage(playerid, COLOR_GREEN, \"Használat: /fegyver [fegyverid] [ammo]\"); if(weaponid > 46) return SendClientMessage(playerid, COLOR_GREEN, \"Maximum 46-os ID-t adhatsz meg!\");GivePlayerWeapon(playerid, weaponid, ammo);GetPlayerName(playerid, name, sizeof(name));GetPlayerName(playerid, name2, sizeof(name2));format(string, sizeof(string), \"%s adott %s-nek egy %i IDjü fegyvert!\", name, name2);SendClientMessageToAll(COLOR_GREEN, string);}else SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy admin!\");return 1;}