Skripta koju koristim: Balkan Gaming
Detaljan opis problema: Potreban mi je neko ko zna dodati timer u onplalyerconnect za komandu
Dio skripte:public DrvoSrece
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
{
GivePlayerMoney(playerid, 20);
}
return 1;
}
I u OnPlayerConnect dodas SetTimer("DrvoSrece", 1000, true);
Neke slike/video za lakse dobivanje pomoci(neobavezno): sta ce ti slika
[pawn]
forward DrvoSrece(playerid);
public DrvoSrece(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z)) { GivePlayerMoney(playerid, 20); } // umesto x y z pises kordinate tog drveta
return 1;
}
[/pawn]
Zatim dodas pod OnGameModeInit
[pawn]
SetTimer("DrvoSrece", 1000, true);
[/pawn]
Mislim da je ovo to sto trazis:
public DrvoSrece
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
{
GivePlayerMoney(playerid, 20);
}
return 1;
update Streamer{(1)};
OnPlayerConnect(StreamerUpdated.Value = False);
}
Citat: Just Stefan poslato Decembar 11, 2017, 22:01:27 POSLE PODNE
Mislim da je ovo to sto trazis:
public DrvoSrece
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
{
GivePlayerMoney(playerid, 20);
}
return 1;
update Streamer{(1)};
OnPlayerConnect(StreamerUpdated.Value = False);
}
Nemoj mu otezavat zivot, vidis da tajmer naziva komandom.
Samo jos jell ovdje dodajem ovo sranje jebi ga ne znam :'( :'( https://imgur.com/a/QlVur