[HELP] Can someone help me with this script
#3

Try this :
Код:
command(mir, playerid, params[])
{
        new id, string[128];
        if(sscanf(params, "u", id))
        {
                SendClientMessage(playerid, WHITE, "SYNTAX: /mir [playerid]");
        }
        else
        {
            if(Groups[Player[playerid][Group]][CommandTypes] == 1 || Groups[Player[playerid][Group]][CommandTypes] == 4)
            {
                if(Player[id][Tazed] == 1)
                {
                    if(GetDistanceBetweenPlayers(playerid, id) < 7)
                    {
                        TogglePlayerControllable(id, true);
                        ApplyAnimation(id, "ped", "cower", 1, 1, 0, 0, 0, 0);
                        Player[id][Cuffed] = 0;
                        Player[id][Tazed] = 0;
                        format(string, sizeof(string), "* %s has said the mir rights to %s.", GetName(playerid), GetName(id));
                        NearByMessage(playerid, NICESKY, string);
                        format(string, sizeof(string), "You have said the mir rights to %s.", GetName(id));
                                        SendClientMessage(playerid, WHITE, string);
                        format(string, sizeof(string), "You have the right to keep silence, Everything you say can be used agaisnt you in a court of the Law", GetName(playerid));
                                        SendClientMessage(id, WHITE, string);
                        format(string, sizeof(string), "You have the right to a Lawyer, If you cannot afford one, the state will appoint you one", GetName(playerid));
                                        SendClientMessage(id, WHITE, string);
                        format(string, sizeof(string), "You have the right to a Phone Call, but only to ONE. Did you understood your rights?", GetName(playerid));
                                        SendClientMessage(id, WHITE, string);
                                        TogglePlayerControllable(id, true);
                    }
                    else
                    {
                        SendClientMessage(playerid, WHITE, "You're too far away!");
                    }
                }
                else
                {
                    if(GetDistanceBetweenPlayers(playerid, id) < 7)
                    {
                        if(GetPlayerSpecialAction(id) == SPECIAL_ACTION_HANDSUP)
                        {
                            TogglePlayerControllable(id, true);
                                ApplyAnimation(id, "ped", "cower", 1, 1, 0, 0, 0, 0);
                                Player[id][Cuffed] = 0;
                                Player[id][Tazed] = 0;
                                format(string, sizeof(string), " %s has said the mir rights to %s.", GetName(playerid), GetName(id));
                        NearByMessage(playerid, NICESKY, string);
                        format(string, sizeof(string), "You have said the mir rights to %s.", GetName(id));
                                        SendClientMessage(playerid, WHITE, string);
                        format(string, sizeof(string), "You have the right to keep silence, Everything you say can be used agaisnt you in a court of the Law", GetName(playerid));
                        format(string, sizeof(string), "You have the right to a Lawyer, If you cannot afford one, the state will appoint you one", GetName(playerid));
                        format(string, sizeof(string), "You have the right to a Phone Call, but only to ONE. Did you understood your rights?", GetName(playerid));
                                        SendClientMessage(id, WHITE, string);
                                        TogglePlayerControllable(id, true);
                        }
                    }
                }
            }
        }
        return 1;
}
Reply


Messages In This Thread
[HELP] Can someone help me with this script - by Stefand - 10.11.2011, 17:31
Re: [HELP] Can someone help me with this script - by Mr_Scripter - 10.11.2011, 17:44
Re: [HELP] Can someone help me with this script - by AdamCooper - 10.11.2011, 18:39
Re: [HELP] Can someone help me with this script - by [MG]Dimi - 10.11.2011, 20:14
Re: [HELP] Can someone help me with this script - by Stefand - 11.11.2011, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)