28.03.2010, 04:13
me ajudem aee ,tipow me ajudem aee quando escrevo /abastecer nas coordenadas ali em baixo,nгo faz,tipo spu iniciante em criar novos scripts,^^ ajudem-me.
E no final do Gm:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/abastecer", true))
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
GameTextForPlayer(playerid, "Re-Abastecendo, Aguarde!", 2000, 3);
SetTimer("Fillup", 5000, false);
}
else
{
SendClientMessage(playerid, 0xAFAFAFAA, " Voce nгo esta no posto de Gasolina");
}
}
return 1;
}
return 0;
}
pawn Код:
stock IsAtGasStation(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,3366.4834,2323.1121,1.4300))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 7.0,3370.4834,2323.1121,1.4300))
{
return 1;
}
}
return 0;
}