09.12.2012, 21:17
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/entrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2695.6880, -1704.6300, 11.8438))
{
SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
SetPlayerInterior(playerid, 3);
}
return true;
}
if(strcmp(cmdtext, "/sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.325195,1304.942871,1093.289062))
{
SetPlayerPos(playerid, 2695.6880, -1704.6300, 11.8438);
SetPlayerInterior(playerid, 0);
}
return true; // Returnando a 1
}
return false;
}