if (strcmp(\"/givecash\", cmdtext, true, 10) == 0){new giveplayerid, moneys;tmp = strtok(cmdtext, idx);if(!strlen(tmp)){SendClientMessage(playerid, COLOR_RED, \"Használat: /givecash [iD] [Pénz]\");}else if (giveplayerid == INVALID_PLAYER_ID){SendClientMessage(playerid, 0xad1010AA, \"Hiba: Nincs ilyen játékos!\");}else{if(giveplayerid == playerid)return SendClientMessage(playerid, 0x06b28cAA, \"Magadnak nem-nem!!!\");new playermoney = GetPlayerMoney(playerid);new playername[MAX_PLAYER_NAME];if (moneys > 0 && playermoney >= moneys){GivePlayerMoney(playerid, (0 - moneys));GivePlayerMoney(giveplayerid, moneys);GetPlayerName(giveplayerid, playername, sizeof (playername));format(string, sizeof(string), \"Te küldtél %s nevû játékosnak pénzt. Összeg %d $ .\", playername, moneys);SendClientMessage(playerid, 0x06b28cAA, string);GetPlayerName(playerid, playername, sizeof (playername));format(string, sizeof(string), \"%s nevû játékostól pénzt kaptál! Összeg %d $ .\", playername, moneys);SendClientMessage(giveplayerid, 0x06b28cAA, string);}else{SendClientMessage(playerid, 0xad1010AA, \"Hiba: Rossz összeg!\");}}return 1;}if (strcmp(\"/pm\", cmdtext, true, 10) == 0){new id,mess[200];tmp = strtok(cmdtext, idx);if(!strlen(tmp)){SendClientMessage(playerid, COLOR_RED, \"Használat: /pm [iD] [Üzenet]\");}else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");else{if(id == playerid) return SendClientMessage(playerid, red, \"Hiba: Magadnak nem küldhetsz üzenetet!\");new name[MAX_PLAYER_NAME];GetPlayerName(playerid, name, sizeof(name));format(string, sizeof string, \"PM: %s[iD:%d]: %s\", name, playerid, mess); SendClientMessage(id,COLOR_RED,string); SendClientMessage(playerid,COLOR_RED,string);}return 1;}
if (strcmp(\"/givecash\", cmdtext, true, 10) == 0){new string[256];new playermoney;new sendername[MAX_PLAYER_NAME];new giveplayer[MAX_PLAYER_NAME];new giveplayerid, moneys, idx; new tmp[256];tmp = strtok(params, idx);if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, \"HASZNÁLAT: /givecash [iD] [összeg]\");giveplayerid = strval(tmp);tmp = strtok(params, idx);if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, \"HASZNÁLAT: /givecash [iD] [összeg]\"); moneys = strval(tmp); 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(ID: %d), $%d.\", giveplayer,giveplayerid, moneys); SendClientMessage(playerid, yellow, string); format(string, sizeof(string), \"Kaptál $%d tõle: %s(ID: %d).\", moneys, sendername, playerid); SendClientMessage(giveplayerid, yellow, string); printf(\"%s(ID:%d) Küldött %d neki %s(ID:%d)\",sendername, playerid, moneys, giveplayer, giveplayerid); } else return SendClientMessage(playerid, yellow, \"Hibás tranzakció.\"); } else { format(string, sizeof(string), \"%d nem létezõ játékos.\", giveplayerid); SendClientMessage(playerid, yellow, string); } return 1;}