Command Request
#4

Download zcmd.inc from filterscript and includes section of the forum. And add the file in your server folder. Here. "serverfolder>pawno>includes>copy and paste the file to this folder called includes which was inside pawno folder."

If this command is not right. Tell me what do you exactly want us to change in your current command?

This is how youre command will be using ZCMD:

pawn Код:
//-----------------------------------[PRISON]-------------------------------------------------------------
// YOUR CMD USING ZCMD Command Processor [Credits: Zeex]
    CMD:prison(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            new id,time;                          
            if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, WHITE, ""COL_RED"|CityBot|{FFFFFF} Niste ovlasteni da koristite tu komandu.");
            if(sscanf(params, "ud", id, time)) return SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /prison [ID Igraca/Deo Imena]");
            if(IsPlayerConnected(id))
            {
                if(id != INVALID_PLAYER_ID)
                {
                    GetPlayerName(id, giveplayer, sizeof(giveplayer));
                    GetPlayerNameEx(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* Stavili ste {48E31C}%s-a u "COL_WHITE"Areu-51.", giveplayer);
                    SendClientMessage(playerid, ZELENKASTA, string);
                    format(string, sizeof(string), "* Admin {48E31C}%s "COL_WHITE"vas je stavio u {48E31C}Areu-51.", sendername);
                    SendClientMessage(id, ZELENKASTA, string);
                    GameTextForPlayer(id, "~w~Dobrodosli u ~n~~r~Area-51", 5000, 3);
                    WantedPoints[id] = 0;
                    WantedLevel[id] = 0;
                    PlayerInfo[id][pJailed] = 2;
                    PlayerInfo[id][pJailTime] = 3600;
                    SetPlayerPos(id, 107.2300,1920.6311,18.5208);
                    SetPlayerWorldBounds(id, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
                    SetPlayerInterior(id,0);
                    PlayerInfo[id][pInt] = 0;
                    format(string, 256, ""COL_RED"|CityBot|{FFFFFF} %s "COL_WHITE"je zatvoren od Admin "COL_RED"%s.", giveplayer, sendername);
                    ABroadCast(COLOR_WHITE,string,1);
                    format(string, sizeof(string), "Area51 | %s je stavljen u areu od %s-a", giveplayer, sendername);
                    printf("%s",string);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "Igrac je offline!");
                return 1;
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Command Request - by 3RoR - 23.04.2012, 10:47
Re: Command Request - by antonio112 - 23.04.2012, 11:02
Re: Command Request - by 3RoR - 23.04.2012, 11:53
Re: Command Request - by Ballu Miaa - 23.04.2012, 11:57
Re: Command Request - by 3RoR - 23.04.2012, 12:01
Re: Command Request - by Ballu Miaa - 23.04.2012, 12:05
Re: Command Request - by 3RoR - 23.04.2012, 12:07
Re: Command Request - by RollTi - 23.04.2012, 12:10
Re: Command Request - by Ballu Miaa - 23.04.2012, 12:15
Re: Command Request - by 3RoR - 23.04.2012, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)