CMD:mpenztad(playerid, params[]){if(PlayerInfo[playerid][Admin] >= 4){new money;if(sscanf(params,\"i\",money)) return SendClientMessage(playerid,COLOR_YELLOW,\"Használat: /mpenztad [összeg]\");for(new i=0;i<MAX_PLAYERS;i++){new str[128],str2[128],o[MAX_PLAYER_NAME];GetPlayerName(playerid,o,sizeof(o));format(str,sizeof str,\"Adminisztrátor: %s adott mindenkinek %s $-t\",o, money);SendClientMessage(playerid, COLOR_ORANGE, str2);format(str2,sizeof str2,\"Sikeresen adtál pénzt ,mindenkinek\");SendClientMessage(playerid, COLOR_ORANGE, str2);new oldmoney;oldmoney = GetPlayerMoney(i);oldmoney += money;GivePlayerMoney(i,oldmoney);}}else if(PlayerInfo[playerid][Admin] < 4){SendClientMessage(playerid,COLOR_RED,\"Hiba: Ezt a parancsot nem használhatod!\");}return 1;}
if(strcmp(cmd,\"/Utal\",true) == 0) {tmp = strtok(cmdtext,idx);if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_RED,\"HASZNÁLAT: /Utal <ID> <ÖSSZEG>\"); return 1;}giveplayerid = strval(tmp);tmp = strtok(cmdtext,idx);if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_RED,\"HASZNÁLAT: /Utal <ID> <ÖSSZEG>\"); return 1;}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),\"$%d-t küldtél %s-nek!\",moneys,giveplayer); SendClientMessage(playerid,COLOR_GREEN,string); format(string, sizeof(string),\"$%d-t kaptál %s-tól!\",moneys,sendername); SendClientMessage(giveplayerid,COLOR_GREEN,string); } else { SendClientMessage(playerid,COLOR_RED,\"Helytelen átutalási tranzakció!\"); }} else { format(string, sizeof(string),\"Nem aktív játékos!\"); SendClientMessage(playerid,COLOR_RED,string);}return 1;}
public OnPlayerCommandText(playerid,cmdtext[])