/pass cmd setting player position
#2

pawn Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
        new Name[MAX_PLAYER_NAME], String[ 80 ];
        GetPlayerName(playerid, Name, sizeof(Name));
     
if(!strcmp(cmdtext, "/pass", true))
{
       if(IsPlayerInRangeOfPoint(playerid, 3.0, 1060.0122,1310.9846,10.8203,95.8134))
       {
             SetPlayerPos(playerid,1055.8455,1310.4878,10.8961,268.9397);
             format( String, sizeof String, "Player %s has passed through the door.", Name);
             SendClientMessageToAll( -1, String);
       }
}
if(!strcmp(cmdtext, "/pass", true))
{
       if(IsPlayerInRangeOfPoint(playerid, 3.0,1055.8455,1310.4878,10.8961,268.9397))
       {
              SetPlayerPos(playerid,1060.0122,1310.9846,10.8203,95.8134);
              format( String, sizeof String, "Player %s has passed through the door.", Name);
              SendClientMessageToAll( -1, String);
       }
}
You check if player is in position, after he entered the specific command.
Reply


Messages In This Thread
/pass cmd setting player position - by Jack- - 29.03.2011, 19:55
Re: /pass cmd setting player position - by antonio112 - 29.03.2011, 20:04

Forum Jump:


Users browsing this thread: 1 Guest(s)