28.07.2014, 20:04
Hi guys, well I will explain my problem in detail. I made a few admin commands that are supposed have effect on other players, but when I test them on other players it shows nothing like the command was not even typed.
My code.
The other commands use the same format as this command, any solutions?
My code.
pawn Код:
CMD:setadminlevel(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[Error]:You are not logged into RCON");
new targetid;
if(sscanf(params, "us[128]", targetid)) return SendClientMessage(playerid, -1, "[ADMCMD]:/setadminlevel[playerid]");
if(IsPlayerConnected(targetid))
{
new str3[510];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new target[MAX_PLAYER_NAME];
GetPlayerName(targetid, target, sizeof(name));
PlayerInfo[targetid][pAdmin] += 1;
format(str3, sizeof(str3), "AmdCmd:Administrator %s has promoted your admin level",name);
SendClientMessage(targetid, 0xFF8080FF, str3);
}
return 1;


