new Port;
forward CloseGate(gateid);
if (strcmp("/pagarpedagio", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,7.0, -2691.8000000,1269.9000000,55.5000000))
MoveObject(Port,-2691.7998000,1269.9004000,55.5000000,3.0);
SetTimerEx("CloseGate", 15000, false, "i", Gate);
SendClientMessage(playerid, Amarelo, "Pedбgio pago no valor de $40, boa Viagem!!");
return 1;
}
}
if (strcmp("/pagarpedagio", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,7.0, -2691.8000000,1269.9000000,55.5000000))
{
MoveObject(Port,-2691.7998000,1269.9004000,55.5000000,3.0);
SetTimerEx("CloseGate", 15000, false, "i", Gate);
SendClientMessage(playerid, Amarelo, "Pedбgio pago no valor de $40, boa Viagem!!");
}
return 1;
}
CMD:pagarpedagio(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid,7.0, -2691.8000,1269.9000,55.5000))
{
SendClientMessage(playerid,-1,"Vocк nгo estб em um pedбgio")
return 1;
}
MoveObject(Port,-2691.7998,1269.900,55.500, 3.0);
SetTimerEx("CloseGate", 15000, false, "i", Gate);
SendClientMessage(playerid, Amarelo, "Pedбgio pago no valor de $40, boa Viagem!!");
}
|
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Vйi, atй eu que num sei programar sa-mp sei qui ele coloco o comando dentro da istoque, mlk mt inteligent |