Robable store's - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Robable store's (
/showthread.php?tid=589048)
Robable store's -
TheKnown - 14.09.2015
Can anyone tell me how to make a robable store in SF?
And i also need to know how to make businesses and houses
Re: Robable store's -
karemmahmed22 - 14.09.2015
Hmm, about robable store, you can do it with timers + dynamic CPs, when player enter the CP just start a timer (5minutes intreval) and check in timer if player still near the CP (when player enter dynamic CP, just make an array to store if player in checkpoint or nah)
PHP код:
new Robbing[MAX_PLAYERS]; // down there near Defines.
Robbing[playerid] = 0; // OnPlayerConnect
Robbing[playerid] = 1; // OnPlayerEnterDynamicCP(playerid, checkpointid)
Robbing[playerid] = 0; // OnPlayerExitDynamicCP(playerid, checkpointid)
if(Robbing[playerid] == 1)
{
// In timer, Do what ever you want.
}
Its not code, its just something explains you how to do it, hope i helped you.
Re: Robable store's -
TheKnown - 14.09.2015
I don't really get it(I am a starter btw)
Re: Robable store's -
TheKnown - 14.09.2015
Anyone Please?
Re : Robable store's -
KillerDVX - 14.09.2015
Hello TheKnown,
While you can search, there are many ways to do it, i'll help you by a tutorial for doing this, but next time please check search button.
The link of tutorial :
https://sampforum.blast.hk/showthread.php?tid=505857
- KillerDVX