Little Help
#1

Hello.I got problem with unjail.When i type /unjail it will unjail me but it need to show message
here is code
pawn Код:
CMD:unjail(playerid, params[])
{
    new id;
    if(PlayerInfo[playerid][pAdminLevel] < 4) return SendClientMessage(playerid,COLOR_GREY,"You are not allowed to use this command!");
    {
        if(sscanf(params, "u", playerid))SendClientMessage(playerid, COLOR_WHITE, "/unjail [PLAYERID]");
        else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
        {
            SpawnPlayer(id);
            SendClientMessage(id,0xFF0000FF,"You have been unjailed by an admin.");
            new gName[MAX_PLAYER_NAME],string[128];
            GetPlayerName(playerid,gName,sizeof gName);
            format(string,sizeof string,"You Unjailed player %s",gName);
            SendClientMessage(playerid,0x00ff00ff,string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Little Help - by SpiderWalk - 14.12.2011, 11:27
Re: Little Help - by SpiderWalk - 14.12.2011, 11:33
Re: Little Help - by emokidx - 14.12.2011, 11:39
Re: Little Help - by Calgon - 14.12.2011, 11:40
Re: Little Help - by SpiderWalk - 14.12.2011, 11:43
Re: Little Help - by Ballu Miaa - 14.12.2011, 11:44
Re: Little Help - by emokidx - 14.12.2011, 11:48
Re: Little Help - by Calgon - 14.12.2011, 11:50
Re: Little Help - by suhrab_mujeeb - 14.12.2011, 12:14
Re: Little Help - by SpiderWalk - 14.12.2011, 13:07

Forum Jump:


Users browsing this thread: 2 Guest(s)