11.01.2017, 22:16
(
Последний раз редактировалось HeisenGiromB; 11.01.2017 в 23:43.
)
fiz pra vc....
poe na OnGameModeInit:
No final do gm:
Vocк pode ajustar o timer e a float range
poe na OnGameModeInit:
PHP код:
for(new i; i < GetMaxPlayers(); i++)
{
SetTimerEx("Pedagio",6000,1, "i", i);
}
No final do gm:
PHP код:
forward Pedagio(playerid);
public Pedagio(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, fX,fY,fZ))
{
SendClientMessage(playerid, -1, "| PEDБGIO | Vocк passou no pedбgio e perdeu 50 $ !");
sGivePlayerCash(playerid, - 50 );
}
}
}