10.04.2014, 14:32
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Entrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1928.5828,-1776.2908,13.5469))
{//Entrada Loja de Conveniencia Posto Golng
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, -25.884498,-185.868988,1003.546875);
GameTextForPlayer(playerid, "~w~Loja de Conveniencia ~h~~Posto Golng", 5000, 1);
SetPlayerVirtualWorld(playerid, 1);
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1383.2607,465.5530,20.1919))
{//Entrada Loja de Conveniencia Posto Tosser
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, -25.884498,-185.868988,1003.546875);
GameTextForPlayer(playerid, "~w~Loja de Conveniencia ~h~~Posto Tosser", 5000, 1);
SetPlayerVirtualWorld(playerid, 2);
}
return 1;
}
pawn Код:
SetPlayerVirtualWorld(playerid, 2);
pawn Код:
if(strcmp(cmdtext, "/Sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -25.884498,-185.868988,1003.546875))
{//Saida Loja de Conveniencia Posto Golng
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1928.5828,-1776.2908,13.5469);
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, -25.884498,-185.868988,1003.546875))
{//Saida Loja de Conveniencia Posto Tosser
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1383.2607,465.5530,20.1919);
}
return 1;
}