SA-MP Forums Archive
SFCRRPG Money bug - 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: SFCRRPG Money bug (/showthread.php?tid=497512)



SFCRRPG Money bug - MohanedZzZ - 27.02.2014

REMOVED


Re: SFCRRPG Money bug - MohanedZzZ - 27.02.2014

REMOVED


Re: SFCRRPG Money bug - MasterReturnz - 27.02.2014

How about this?
Quote:

#include <a_samp>
#include <Dini>

forward LoadPlayerMoney(playerid);
new pname[30];
new PlayerMoney[MAX_PLAYERS];
#define COLOR_RED 0xFA2B25AA

public OnGameModeExit()
{
return 1;
}

public OnPlayerConnect(playerid)
{
if(!IsPlayerNPC(playerid))
{
GetPlayerName(playerid,pname,30);
if(!dini_Exists(pname))
dini_Create(pname);
else if(dini_Exists(pname))
{
PlayerMoney[playerid] = dini_Int(pname,"PlayerMoney");
}

LoadPlayerMoney(playerid);
return 1;
}
return 1;
}

public LoadPlayerMoney(playerid)
{
if(!IsPlayerNPC(playerid)){ GivePlayerMoney(playerid,PlayerMoney[playerid]); }
}


public OnPlayerDisconnect(playerid, reason)
{
if(!IsPlayerNPC(playerid))
{
new Pname[24];
GetPlayerName(playerid, Pname, 24);
dini_IntSet("Skins.ini", Pname, GetPlayerSkin(playerid));
}
return 1;




Re: SFCRRPG Money bug - MohanedZzZ - 27.02.2014

Quote:
Originally Posted by MasterReturnz
Посмотреть сообщение
How about this?
O,o ofc no will never be like this,


Re: SFCRRPG Money bug - alishvasis - 27.02.2014

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
O,o ofc no will never be like this,
Search On ****** Man!
SAve Money And Score