if(strcmp(cmdtext, "/enter", true, 6) == 0) { if(PlayerToPoint(3, playerid, -2455.199951, 2254.000000, 4.980384)) { SetPlayerInterior(playerid, 2); SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393); return 1; } }
if(strcmp(cmdtext, "/enter", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, -2455.199951, 2254.000000, 4.980384))
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
return 1;
}
}
Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0) { if(PlayerToPoint(3, playerid, -2455.199951, 2254.000000, 4.980384)) { SetPlayerInterior(playerid, 2); SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393); return 1; } } ?? |
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(3, playerid, -2455.199951, 2254.000000, 4.980384))
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
return 1;
}
}
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, -2455.199951, 2254.000000, 4.980384))
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
return 1;
}
}