Need help making command
#6

Quote:
Originally Posted by cacauagiar
Посмотреть сообщение
Is there anything even more simple? that i wont need an include, like a simple /jail [id] [time] [reason]
fyi: jail is much tougher to understand, if you want it perfect.

Anyway, you wish it to includeless, so.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/jail", true, 5))
{
    if (IsPlayerAdmin(playerid))
    {
        if(!strlen(cmdtext[6]))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Usage: /jail [playerid]");
            return 1;
        }
        new ID = strval(cmdtext[6]);
        new strv[170];
        if(IsPlayerConnected(ID))
        {
            format(strv, 170, "~ You have been jailed");
            SendClientMessage(ID,COLOR_WHITE, strv);
            SetPlayerPos(ID, 264.8763,81.9862,1001.0390);
            SetPlayerInterior(ID, 6);
        }
    }
    return SendClientMessage(playerid, COLOR_WHITE, "Your not rcon admin!");
}
        return 0;
}
Reply


Messages In This Thread
Need help making command - by cacauagiar - 18.10.2012, 21:11
Re: Need help making command - by St1geR - 18.10.2012, 21:23
Re: Need help making command - by Jake__ - 18.10.2012, 21:25
Re: Need help making command - by cacauagiar - 18.10.2012, 21:39
Re: Need help making command - by Jake__ - 19.10.2012, 00:39
Re: Need help making command - by RanSEE - 19.10.2012, 04:30

Forum Jump:


Users browsing this thread: 1 Guest(s)