18.10.2012, 02:52
I'm trying to make a message appear when you get near the pickup to enter a building.
Currently the way I have it, the message pops up after you use the /enter command.
Any help is appreciated!
Currently the way I have it, the message pops up after you use the /enter command.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/enter", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2622.9094, 2754.1184, 12.5452))
SendClientMessageToAll(0xFFFFFFFF,"Type /enter to enter!");
{
SetPlayerPos(playerid, 238.6620,141.0520,1003.0234);//FBI Entrance
SetPlayerInterior(playerid, 3);
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2659.5286,2753.1008,12.5377))
SendClientMessageToAll(0xFFFFFFFF,"Type /enter to enter!");
{
SetPlayerPos(playerid, 249.8472,181.9114,1003.0234);//Rear FBI Entrance
SetPlayerInterior(playerid, 3);
}
}