#include <a_samp>new pName[MAX_PLAYER_NAME],string[256];public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/aduty\", cmdtext, true, 10) == 0){SendClientMessage(playerid,0xFF0000AA,\"Használat: /aduty [on/off]\");return 1;}if (strcmp(\"/aduty on\", cmdtext, true, 10) == 0) {if(!IsPlayerAdmin(playerid)) return 0;{GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"=====%s ADMIN SZOLGÁLATBAN=====\", pName);SendClientMessageToAll(0xFF0000AA,string);SendClientMessageToAll(0xFF0000AA,\"=====ÕT TILOS MEGÖLNI!=====\");SetPlayerHealth(playerid,99999999);SetPlayerSkin(playerid,217);}return 1;}if (strcmp(\"/aduty off\", cmdtext, true, 10) == 0) {if(!IsPlayerAdmin(playerid)) return 0;{GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"=====%s ADMIN KILÉPETT A SZOLGÁLATBÓL=====\", pName);SendClientMessageToAll(0xFF0000AA,string);SendClientMessageToAll(0xFF0000AA,\"=====BESZÁLLT A JÁTÉKBA!=====\");SetPlayerHealth(playerid,75);SetPlayerSkin(playerid,250);}return 1;}return 0;}
new plarerSkin[MAX_PLAYERS];
if (strcmp(\"/aduty on\", cmdtext, true, 10) == 0) {if(!IsPlayerAdmin(playerid)) return 0;{GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"=====%s ADMIN SZOLGÁLATBAN=====\", pName);SendClientMessageToAll(0xFF0000AA,string);SendClientMessageToAll(0xFF0000AA,\"=====ÕT TILOS MEGÖLNI!=====\");SetPlayerHealth(playerid,100);playerSkin[playerid] = GetPlayerSkin(playerid);SetPlayerSkin(playerid,217);}return 1;}if (strcmp(\"/aduty off\", cmdtext, true, 10) == 0) {if(!IsPlayerAdmin(playerid)) return 0;{GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"=====%s ADMIN KILÉPETT A SZOLGÁLATBÓL=====\", pName);SendClientMessageToAll(0xFF0000AA,string);SendClientMessageToAll(0xFF0000AA,\"=====BESZÁLLT A JÁTÉKBA!=====\");SetPlayerHealth(playerid,75);SetPlayerSkin(playerid, playerSkin[playerid]);}return 1;}