01.07.2011, 02:30
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/entrarnacasadeadmin", true))
{
if(!IsPlayerAdmin(playerid)) return return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo й administrador.");
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2214.40,-1150.31,1025.80)) return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo estб na entrada.");
//troque as coordenadas acima pela qual ele deve estar para entrar
SetPlayerPos(playerid, 2214.40,-1150.31,1025.80);//coordenadas dentro da casa
return 1;
}
if(!strcmp(cmdtext, "/sairdacasadeadmin", true))
{
if(!IsPlayerAdmin(playerid)) return return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo й administrador.");
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2214.40,-1150.31,1025.80)) return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo estб na entrada.");
//troque as coordenadas acima pela qual ele deve estar para sair
SetPlayerPos(playerid, 2214.40,-1150.31,1025.80);//coordenadas fora da casa
return 1;
}
return 0;
}
Atenciosamente,
[Y]Falcon.