[Include] Basic Server Side Money
#1

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
Reply


Messages In This Thread
Basic Server Side Money - by TooBasic - 15.12.2011, 17:29
Respuesta: Basic Server Side Money - by [DOG]irinel1996 - 15.12.2011, 17:41
Re: Basic Server Side Money - by TooBasic - 16.12.2011, 17:36
Re: Basic Server Side Money - by -Rebel Son- - 17.12.2011, 02:21
Re: Basic Server Side Money - by Astralis - 17.12.2011, 11:19
Re: Basic Server Side Money - by TooBasic - 17.12.2011, 14:04
Respuesta: Basic Server Side Money - by michael_dark_1 - 11.03.2012, 01:34
Re: Basic Server Side Money - by Hansolue - 13.03.2012, 14:32
Respuesta: Basic Server Side Money - by juansrc - 19.03.2012, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)