[Include] Basic Server Side Money - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Basic Server Side Money (
/showthread.php?tid=303836)
Basic Server Side Money -
TooBasic - 15.12.2011
TooBasic's Basic Server Side Money Include
Title says all.
Hello all! My first release
This is just a basic server side money include!
Whats it have?
It contains 4 functions to set, give, reset & get the players server side money.
Usages?
Код:
server_SetCash(playerid, cash)
server_GiveCash(playerid, cash)
server_ResetCash(playerid)
server_GetCash(playerid)
Any examples?
pawn Код:
#include <basicssm> // Top of your script below rest of includes, be sure to include a_samp
public OnPlayerConnect(playerid)
{
server_SetCash(playerid, 10000);
return 1;
}
public OnPlayerSpawn(playerid)
{
new msg[21]; format(msg, sizeof(msg), "You have $%i!", server_GetCash(playerid));
SendClientMessage(playerid, -1, msg);
return 1;
}
public OnPlayerDeath(playerid, killerid)
{
server_SetCash(playerid, server_GetCash(playerid) -100);
if(IsPlayerConnected(killerid)) { server_GiveCash(killerid, 100); }
return 1;
}
Bugs?
None found so far
Download?
http://pastebin.com/CejG4z1h
Respuesta: Basic Server Side Money -
[DOG]irinel1996 - 15.12.2011
For your first release it's ok.
Good job.
Re: Basic Server Side Money -
TooBasic - 16.12.2011
Thanks
Re: Basic Server Side Money -
-Rebel Son- - 17.12.2011
Great first release! Keep it up bud!
Re: Basic Server Side Money - Astralis - 17.12.2011
awesome include for your first release.
Re: Basic Server Side Money -
TooBasic - 17.12.2011
Thanks
Respuesta: Basic Server Side Money -
michael_dark_1 - 11.03.2012
how i can make a .ini for these cash?
Re: Basic Server Side Money -
Hansolue - 13.03.2012
Not bad
Respuesta: Basic Server Side Money -
juansrc - 19.03.2012
wow, i use with my system of save stats