29.03.2011, 20:04
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);
}
}