CMD:givecash(playerid,params[]){new string[256];new playermoney;new sendername[MAX_PLAYER_NAME];new giveplayer[MAX_PLAYER_NAME];new giveplayerid, moneys;if(sscanf(params, \"is[256]\", giveplayerid, moneys)) return SendClientMessage(playerid, -1, \"Használat: /givecash [PlayerID] [Pénz]\");if (IsPlayerConnected(giveplayerid)) {GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));GetPlayerName(playerid, sendername, sizeof(sendername));playermoney = GetPlayerMoney(playerid);if (moneys > 0 && playermoney >= moneys) {GivePlayerMoney(playerid, (0 - moneys));GivePlayerMoney(giveplayerid, moneys);format(string, sizeof(string), \"Küldtél %s(%d)-nak/nek %d$-t!\", giveplayer,giveplayerid, moneys);SendClientMessage(playerid, yellow2, string);format(string, sizeof(string), \"%s(%d) küldött neked %d$-t!\", sendername, playerid, moneys);SendClientMessage(giveplayerid, yellow2, string);} else return SendClientMessage(playerid, red, \"Hibás tranzakció!\");} else {SendClientMessage(playerid, yellow, \"Hibás ID-t adtál meg!\");}return 1;}
CMD:givecash(playerid, params[]){new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], string[128], GiveID, osszeg;if(sscanf(params, \"ui\", GiveID, osszeg)) return SendClientMessage(playerid, 0xB4B5B7FF, \"Használat: /givecash <id> <összeg>\");if(GiveID == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xB4B5B7FF, \"Rossz ID!\");if(!IsPlayerConnected(GiveID) && IsPlayerNPC(GiveID)) return SendClientMessage(playerid, 0xB4B5B7FF, \"Rossz ID!\");if(GetPlayerMoney(playerid) < osszeg) return SendClientMessage(playerid, 0xFF0000AA, \"HIBA: Nincs elég pénzed!\");GivePlayerMoney(GiveID, osszeg);GivePlayerMoney(playerid,-osszeg);GetPlayerName(playerid, name, MAX_PLAYER_NAME);format(string, sizeof(string),\"Küldtél %s-nek/nak $%d-t!\",name, osszeg, string);SendClientMessage(playerid,0x33FF33AA,string);GetPlayerName(playerid, name2, MAX_PLAYER_NAME);format(string, sizeof(string),\"%s Küldött neked $%d-t\",name2, osszeg, string);SendClientMessage(GiveID,0x33FF33AA,string);return 1;}
CMD:givecash(playerid, params[]){new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], string[128], GiveID, osszeg;if(sscanf(params, \"ui\", GiveID, osszeg)) return SendClientMessage(playerid, 0xB4B5B7FF, \"Használat: /givecash <id> <összeg>\");if(GiveID == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xB4B5B7FF, \"Rossz ID!\");if(!IsPlayerConnected(GiveID) && IsPlayerNPC(GiveID)) return SendClientMessage(playerid, 0xB4B5B7FF, \"Rossz ID!\");if(GetPlayerMoney(playerid) < osszeg) return SendClientMessage(playerid, 0xFF0000AA, \"HIBA: Nincs elég pénzed!\");GivePlayerMoney(GiveID, osszeg);GivePlayerMoney(playerid,-osszeg);GetPlayerName(playerid,Name, MAX_PLAYER_NAME); format(string, sizeof(string),\"Küldtél %s nak/nek $%d-t!\",name, osszeg, string); SendClientMessage(playerid,COLOR_GREEN,string);GetPlayerName(playerid,Name, MAX_PLAYER_NAME); format(string, sizeof(string),\"%s Küldött neked $%d-t!\",name2, osszeg, string);SendClientMessage(GiveID,0x33FF33AA,string);return 1;}