/makeleader [id] [faction name] | /jail command
#1

Im trying to make a command "/makeleader [playername/id] [factionname/number].
Im currently using a filterscript titled "Job filterscript." I took out the weed one though...
now i want to make it so i do /makeleader [playername/id] [factionname/number] and then it makes that player the faction. Its just that, in this it has Swat[playerid] = 1; Cop[playerid] = 1; Etc. and i dont know how to do it. If someone could help me it would be appreciated.

PS: My spelling/grammar sucks.
PSS: Im new to scripting.... so... and i wanted to make a simple rp script, as im just beggining.

EDIT: also, im wondering how do i edit the /jail command. This is the command:
pawn Код:
dcmd_jail(playerid, params[])
{
    if (strlen(params))
    {
        new time;
        id = strval(params[0]);
        time = strval(params[1]);
        if (IsPlayerConnected(id))
        {
            if(Army[playerid] == 1 || Swat[playerid] == 1 || Cop[playerid] == 1 || Ss[playerid] == 1)
            {
                new Float:x;
                new Float:y;
                new Float:z;
                new string[265];
                GetPlayerPos(playerid,Float:x,Float:y,Float:z);
                SetPlayerPos(id,Float:x,Float:y,Float:z);
                SetTimer("jail",time+000,0);
                format(string,sizeof(string),"Jail:You got jailed for %s ",time);
                SendClientMessage(id,0x00FF00AA,string);
            }
            else
            {
                SendClientMessage(playerid,0xFF0000AA,"You dont have permission for this commands");
            }
        }
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "Player not found");
        }
    }
    else
    {
        SendClientMessage(playerid, 0xFF0000AA, "Usage: /jail <playerid> <seconds>");
    }
    return 1;
}
But it will just instantly put them in jail (i think) and im wondering how do i edit it so you have to be close to the player, and to the a certain spot?
Reply


Messages In This Thread
/makeleader [id] [faction name] | /jail command - by DaRealz - 22.06.2011, 20:33
Re: /makeleader [id] [faction name] | /jail command - by ZBits - 06.07.2012, 00:30
Re: /makeleader [id] [faction name] | /jail command - by SnG.Scot_MisCuDI - 06.07.2012, 00:46

Forum Jump:


Users browsing this thread: 3 Guest(s)