


CMD<AD1>:forceteam(cmdid, playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /forceteam [player]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, NOPLAYER);
if(LoggedIn[targetid] != true) return SendClientMessage(playerid, COLOR_RED, NOTLOGGEDIN);
if(UserStats[playerid][AdminLevel] < UserStats[targetid][AdminLevel]) return SendClientMessage(playerid, COLOR_RED, NOLEVEL);
ForceClassSelection(targetid);
SetPlayerHealth(targetid, 0.0);
PlayerPlaySound(targetid, 1057, 0.0, 0.0, 0.0);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
new buf[150];
format(buf, sizeof(buf), "[AdmCmd]: Admin [%i] %s has forced you to class selection.", playerid, GetName(playerid));
SendClientMessage(targetid, COLOR_RED, buf);
format(buf, sizeof(buf), "You have forced [%i] %s to class selection.", GetName(targetid), targetid);
SendClientMessage(playerid, COLOR_RED, buf);
return 1;
}
CMD<AD1>:suicide(cmdid, playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /suicide [player id]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, NOPLAYER);
if(!LoggedIn[targetid]) return SendClientMessage(playerid, COLOR_RED, NOTLOGGEDIN);
if(UserStats[playerid][AdminLevel] < UserStats[targetid][AdminLevel]) return SendClientMessage(playerid, COLOR_RED, NOLEVEL);
SetPlayerHealth(targetid, -1);
return 1;
}
|
1. Don't load FilterScript in OnGamemodeInit
2. There was a broken function inside script that blocked all other things 3. OnPlayerCOmamndText should return 0 value in each FS |
|
post here the code of weapon-config
ans show some of other commands |
CMD<AD1>:shp(cmdid, playerid, params[])
{
new targetid, amount;
if(sscanf(params, "ui", targetid, amount)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /shp [playerid] [amount]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, NOPLAYER);
if(LoggedIn[targetid] != true) return SendClientMessage(playerid, COLOR_RED, NOTLOGGEDIN);
SetPlayerHealth(targetid, amount);
new buf[150];
format(buf, sizeof(buf), "You have set %s's health to %d.", GetName(targetid), amount);
SendClientMessage(playerid, COLOR_RED, buf);
return 1;
}
CMD<AD1>:sarm(cmdid, playerid, params[])
{
new targetid, amount;
if(sscanf(params, "ui", targetid, amount)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /sarm [playerid] [amount]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, NOPLAYER);
if(LoggedIn[targetid] != true) return SendClientMessage(playerid, COLOR_RED, NOTLOGGEDIN);
SetPlayerArmour(targetid, amount);
new buf[150];
format(buf, sizeof(buf), "You have set %s's armour to %d.", GetName(targetid), amount);
SendClientMessage(playerid, COLOR_RED, buf);
return 1;
}