[Help] /cuff or /tie
#5

I've made a /tie command now but if I do /tie 12 (for example) it ties myself and not the id I typed.

pawn Код:
if(strcmp(cmd, "/tie", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /tie [player id]");
                return 1;
            }
      TogglePlayerControllable(playerid, 0);
        }
        return 1;
    }
//--------------------------------------------------------------------------------------------------------------
    if(strcmp(cmd, "/untie", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /tie [player id]");
                return 1;
            }
      TogglePlayerControllable(playerid, 1);
        }
        return 1;
    }
Reply


Messages In This Thread
[Help] /cuff or /tie - by joeri55 - 09.06.2009, 20:35
Re: [Help] /cuff or /tie - by Klutty - 09.06.2009, 20:36
Re: [Help] /cuff or /tie - by miokie - 09.06.2009, 20:41
Re: [Help] /cuff or /tie - by joeri55 - 09.06.2009, 21:24
Re: [Help] /cuff or /tie - by joeri55 - 09.06.2009, 21:52
Re: [Help] /cuff or /tie - by joeri55 - 09.06.2009, 22:33

Forum Jump:


Users browsing this thread: 2 Guest(s)