/jail command. Whats wrong here?
#8

pawn Код:
if(strcmp(cmdtext, "/ajail", true,6) == 0)
{
    if(!strlen(cmdtext[7])) return SendClientMessage(playerid, COLOR_WHITE, "USAGE/UŻYCIE: /kick [playerid]");
    if(IsPlayerConnected(strval(cmdtext[7])))
    {
        SetPlayerPos(strval(cmdtext[7]),264.6288,77.5742,1001.0391);
        SetPlayerInterior(strval(cmdtext[7]), 6);
        SetCameraBehindPlayer(strval(cmdtext[7]));
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(strval(cmdtext[7]), pname, sizeof (pname));
        format(stringl, sizeof(stringl), "*** %s has been jailed by Admin / został uwięziony przez Admina: %s.", pname,pname);
        SendClientMessageToAll(COLOR_ADMIN, stringl);
        printf(stringl);
    }else{
        format(stringl, sizeof(stringl), "ID %d is not an active player / nie jest aktywnym graczem!", strval(cmdtext[7]));
        SendClientMessage(playerid, COLOR_GREY, stringl);
    }
    return 1;
}
Cheerz.
Reply


Messages In This Thread
/jail command. Whats wrong here? - by Puzi - 25.08.2009, 20:13
Re: /jail command. Whats wrong here? - by Kyle - 25.08.2009, 20:45
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 06:16
Re: /jail command. Whats wrong here? - by Clavius - 26.08.2009, 06:21
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 06:24
Re: /jail command. Whats wrong here? - by dice7 - 26.08.2009, 08:14
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 09:32
Re: /jail command. Whats wrong here? - by Jefff - 26.08.2009, 10:57
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 14:47
Re: /jail command. Whats wrong here? - by Jefff - 26.08.2009, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)