[QUESTION]
#6

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"/example"))
    {
        new Float:p_Pos[3]; GetPlayerPos(playerid,p_Pos[0],p_Pos[1],p_Pos[2]);
        if( (p_Pos[0] == /* The X pos*/) && (p_Pos[1] == /*The Y pos*/) && (p_Pos[2] == /*The Z pos*/) )
        {
            //Command applys here.
        }
        else SendClientMessage(playerid,-1,"You're not in the correct positions!");
        return 1;
    }
    return 0;
}
But to be in the exact position you need to be pretty damn accurate.
Reply


Messages In This Thread
[QUESTION] - by KiiD - 03.02.2012, 12:02
Respuesta: [QUESTION] - by junkbuster - 03.02.2012, 12:22
Re: [QUESTION] - by Mark™ - 03.02.2012, 12:23
Re: [QUESTION] - by KiiD - 03.02.2012, 12:39
Re: [QUESTION] - by MasterJoker - 03.02.2012, 12:44
Re: [QUESTION] - by [XST]O_x - 03.02.2012, 12:44
Respuesta: [QUESTION] - by junkbuster - 03.02.2012, 12:46
Re: [QUESTION] - by KiiD - 03.02.2012, 16:50
Re: [QUESTION] - by KiiD - 04.02.2012, 00:41
Re: [QUESTION] - by Amit_B - 04.02.2012, 00:47

Forum Jump:


Users browsing this thread: 1 Guest(s)