Bank System - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bank System (
/showthread.php?tid=73984)
Bank System -
Sean12 - 19.04.2009
Does anyone know where I can get a paycheck system, so when payday comes, it tells you to goto the LS City Bank to pick up your check, and when you get there, you walk through a marker and recive your payday?
Re: Bank System -
Rks25 - 19.04.2009
this are the steps.
- make a pickup at lsbank
- Make timer with function
- in that function set a variable to 1
- when someone goes to bank, check if variable is 1, and than give him the payday.
Re: Bank System -
MenaceX^ - 19.04.2009
What script do you use?
Re: Bank System -
Sean12 - 19.04.2009
Quote:
Originally Posted by MenaceX^
What script do you use?
|
Wasted Roleplay Los Santos: Godfather Edit
Re: Bank System -
MenaceX^ - 19.04.2009
Create a new pickup varieble, OnPlayerPickupickup - When the player stands on the pickup, give him a payday.
Re: Bank System -
Sean12 - 19.04.2009
Quote:
Originally Posted by MenaceX^
Create a new pickup varieble, OnPlayerPickupickup - When the player stands on the pickup, give him a payday.
|
Okay, but when I do that, it will only give the player the paycheck once on payday right?
Re: Bank System -
Sean12 - 19.04.2009
Should it look like this?
Код:
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (PlayerToPoint(3, playerid,2315.9199,-12.0549,26.7422))
{
PayDay();
}
return 1;
}
Re: Bank System -
Rks25 - 19.04.2009
no, search how to use CreatePickup on the wiki. Than you wil lsee what you done wrong.
Re: Bank System -
Sean12 - 19.04.2009
Okay but I only want it so that they get it on PayDay();