Pénz küldésre ott a givecash parancs az lvdm-ben (alap szervercsomagban).
[pawn]public OnPlayerConnect(playerid)
{
new file[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"%s.ini\",name);
if(!fexist(file))
{
dini_Create(file);
dini_IntSet(file,\"Money\", 0);
}
if(fexist(file))
{
GivePlayerMoney(playerid, dini_Int(file,\"Money\"));
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new file[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"%s.ini\",name);
if(fexist(file))
{
dini_IntSet(file,\"Money\", GetPlayerMoney(playerid));
}
return 1;
}[/pawn]