Wie gesagt es passiert immer egal was ich mache mit geld auch wenn ich mit /repair - geld mache egal hier ist der code:
ocmd:givemoney(playerid, params[])
{
if(isPlayerAnAdmin(playerid,5))
{
new money, admstr[128];
new give[MAX_PLAYER_NAME];
GetPlayerName(playerid, give, MAX_PLAYER_NAME);
new get[MAX_PLAYER_NAME];
GetPlayerName(databank, get, MAX_PLAYER_NAME);
if(sscanf(params, "ud", databank, money))return SendClientMessage(playerid, 0x00FF78FF, "Using:/givemoney [ID] [money]");
format(admstr, sizeof(admstr), "", give, get, money);
new str[256];
format(str, sizeof(str), "", give, money);
SendClientMessage(databank, 0xAF0000FF, str);
GivePlayerMoney(databank, money);
for(new i;i<MAX_PLAYERS;i++)
{
if(isPlayerAnAdmin(playerid,1))
{
SpielerSpeichern(i);
SendClientMessage(i, 0xAF0000FF, admstr);
}
}
}
else
{
SendClientMessage(playerid, 0xAF0000FF, "You are not admin lvl 5");
}
return 1;
}