#include <a_samp>#include <zcmd>#include <sscanf2> public OnPlayerConnect(playerid){ SetPVarInt(playerid, \"Mento\", 0); SetPVarInt(playerid, \"Szolgalat\", 0); return 1;} CMD:mento(playerid, params[]){ if(GetPlayerScore(playerid) >= 1600) { SetPVarInt(playerid, \"Mento\", 1); SetPlayerPos(playerid, X, Y, Z); // Ide írd a kordinátát! SetPlayerSkin(playerid, 275); } else { SendClientMessage(playerid, 0xFF0000AA, \"Nincs 1600 pontod!\"); } return 1;}CMD:szoli(playerid, params[]){ if(GetPVarInt(playerid, \"Szolgalat\") == 0) { new name[MAX_PLAYER_NAME], string[128]; SetPVarInt(playerid, \"Szolgalat\", 1); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%d) Mentõ szolgálatba állt!\", name, playerid); SendClientMessageToAll(0x33AA33AA, string); } return 1;}CMD:gyogyit(playerid, params[]){ if(GetPVarInt(playerid, \"Mento\") == 1) { new PID, ertek; if(sscanf(params, \"ui\", PID, ertek)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /heal <ID/Játékosnév> <Érték>\"); if(ertek < 0 || ertek > 100) return SendClientMessage(playerid, 0xFF0000AA, \"Rossz érték! (0-100)\"); if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Rossz ID/Név\"); if(playerid == PID) return SendClientMessage(playerid, 0xFF0000AA, \"Magadanak nem töltheted fel az életedet!\"); SetPlayerHealth(PID, ertek); GivePlayerMoney(playerid, 100); SetPlayerScore(playerid, GetPlayerScore(playerid) +10); } else if(GetPVarInt(playerid, \"Mento\") == 0) { SendClientMessage(playerid, 0xFF0000AA, \"Nem vagy mentõs!\"); } return 1;}CMD:104(playerid, params[]){ new name[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%d) Hívta a mentõket!\", name, playerid); SendClientMessageToAll(0x33CCFFAA, string); return 1;}
#include <a_samp>#include <zcmd>#include <sscanf2> public OnPlayerConnect(playerid){ SetPVarInt(playerid, \"Mento\", 0); SetPVarInt(playerid, \"Szolgalat\", 0); return 1;} CMD:mento(playerid, params[]){ if(GetPlayerScore(playerid) >= 1600) { SetPVarInt(playerid, \"Mento\", 1); SetPlayerPos(playerid, X, Y, Z); // Ide írd a kordinátát! SetPlayerSkin(playerid, 275); } else { SendClientMessage(playerid, 0xFF0000AA, \"Nincs 1600 pontod!\"); } return 1;}CMD:szoli(playerid, params[]){ if(GetPVarInt(playerid, \"Szolgalat\") == 0) { new name[MAX_PLAYER_NAME], string[128]; SetPVarInt(playerid, \"Szolgalat\", 1); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%d) Mentõ szolgálatba állt!\", name, playerid); SendClientMessageToAll(0x33AA33AA, string); } return 1;}CMD:gyogyit(playerid, params[]){ if(GetPVarInt(playerid, \"Mento\") == 1) { new PID, ertek; if(sscanf(params, \"ui\", PID, ertek)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /heal <ID/Játékosnév> <Érték>\"); if(ertek < 0 || ertek > 100) return SendClientMessage(playerid, 0xFF0000AA, \"Rossz érték! (0-100)\"); if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Rossz ID/Név\"); if(playerid == PID) return SendClientMessage(playerid, 0xFF0000AA, \"Magadanak nem töltheted fel az életedet!\"); SetPlayerHealth(PID, ertek); GivePlayerMoney(playerid, 100); SetPlayerScore(playerid, GetPlayerScore(playerid) +10); } else if(GetPVarInt(playerid, \"Mento\") == 0) { SendClientMessage(playerid, 0xFF0000AA, \"Nem vagy mentõs!\"); } return 1;}CMD:104(playerid, params[]){ new Float:x, Float:y, Float:z; name[MAX_PLAYER_NAME], string[128]; GetPlayerPos(playerid, x, y, z); SetPlayerCheckpoint(playerid, x, y, z); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%d) Hívta a mentõket!\", name, playerid); SendClientMessageToAll(0x33CCFFAA, string); return 1;}