11.10.2010, 03:43
no topo do gm:
no public OnPlayerCommandText(playerid, cmdtext[])
pawn Code:
#define Posto1 x,y,z
pawn Code:
//
if(strcmp(cmd, "/abastecer", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, Posto1))
{
GameTextForPlayer(playerid,"~w~Gasolina!",2000,3);
}
else
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo esta num posto de gasolina!");
}
}
return 1;
}