if (!strcmp(cmd, "/disarm", true)) { if (!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_RED, "You are not an admin!"); return 1; } new pid, tmpp[256]; tmpp = strtok(cmdtext, idx); if (!strlen(tmpp)) { SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /disarm [playerid]"); return 1; } pid = strval(tmpp); if (!(IsPlayerConnected(pid))) { SendClientMessage(playerid, COLOR_RED, "That user is not connected."); return 1; } ResetPlayerWeapons(pid); new name[MAX_PLAYER_NAME+1]; new string[256]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "***Admin %s has disarmed you ***", name); SendClientMessage(pid,COLOR_GREEN, string); return 1; }