My list of what i need help with.
#5

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

pawn Код:
CMD:cuff(playerid,params[])
{
    new id,string[128];
    if(sscanf(params, "u",id))SendClientMessage(playerid,COLOR_RED,"Usage: /cuff [ID]");
    else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Player Not Connected!");
    else
    {
        format(string, sizeof(string), "You are cuffed");
        GameTextForPlayer(playerid, string, 500, 4);
        TogglePlayerControllable(id,0);
    }
    else
    {
        if (IsPlayerInRangeOfPoint(playerid, 3.0, X, Y, Z))
    {
          // freezing player because of cuff.
    return 1;
}
* I'm not sure this code works, I typed it here.
Reply


Messages In This Thread
My list of what i need help with. - by Shockey HD - 12.08.2011, 05:39
Re: My list of what i need help with. - by PrawkC - 12.08.2011, 05:44
Re: My list of what i need help with. - by Shockey HD - 12.08.2011, 06:06
Re: My list of what i need help with. - by BigAl - 12.08.2011, 06:07
Re: My list of what i need help with. - by Darnell - 12.08.2011, 06:07
Re: My list of what i need help with. - by PrawkC - 12.08.2011, 06:16

Forum Jump:


Users browsing this thread: 1 Guest(s)