if(strcmp(cmd,"/giveweapon", true) == 0) { if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_RED, "You must be admin to use this command."); return 1; } new string[256]; new playername[MAX_PLAYER_NAME]; new tmp[256]; tmp = strtok(cmdtext, idx); weaponid = strval(tmp); { GetPlayerName(playerid, playername, MAX_PLAYER_NAME); GivePlayerWeapon(playername, weaponid, weaponid); format (string, sizeof(string), "You have given %s the weapon %s", playername, weaponid); SendClientMessage(playerid, COLOR_YELLOW, string); return 1; } }