if(strcmp(cmd, \"/duty\", true) == 0){ if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pLeader] == 1|| PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3) { if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255) { if(OnDuty[playerid]==1) { format(string, sizeof(string), \"* Rendõr %s Átöltözött, és elõvette fegyvereit.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 24, 150); GivePlayerWeapon(playerid, 5, 0); GivePlayerWeapon(playerid, 29, 15 ); GivePlayerWeapon(playerid, 31, 300); GivePlayerWeapon(playerid, 41, 300); OnDuty[playerid] = 0; } else if(OnDuty[playerid]==0) { format(string, sizeof(string), \"* Rendõr %s Levette a ruháját és eltette a felszerelését.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); OnDuty[playerid] = 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, \" Nem vagy szekrénynél !\"); return 1; } } else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Nem vagy szolgálatban,így nem kapsz több hívást.\"); JobDuty[playerid] = 0; Medics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Te most Szolgálatban vagy,így hívásokat fogsz kapni.\"); JobDuty[playerid] = 1; Medics += 1; } } else if(PlayerInfo[playerid][pJob] == 7) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.\"); JobDuty[playerid] = 0; Mechanics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.\"); JobDuty[playerid] = 1; Mechanics += 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, \" Nem vagy rendõr! !\"); }}return 1;}
if(strcmp(cmd, \"/government\", true) == 0 || strcmp(cmd, \"/gov\", true) == 0){ if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] == 2|| PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 1 ) { SendClientMessage(playerid, COLOR_RED, \" SkyRPG: Nem vagy Rendõr!\"); return 1; } if(PlayerInfo[playerid][pRank] < 5) { SendClientMessage(playerid, COLOR_RED, \" Csak 5-ös rangtól!\"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: (/gov)ernment [üzenet]\"); return 1; } SendClientMessageToAll(COLOR_WHITE, \"|___________ Rendõrségi Figyelmeztetés ___________|\"); format(string, sizeof(string), \" %s: %s\", sendername, result); SendClientMessageToAll(COLOR_DBLUE, string);}return 1;}
CMD:asay ( playerid, params [ ] ){ new string [ 128 ]; if ( PlayerInfo [ playerid ] [ pLevel ] < 2 ) return SendClientMessage(playerid, COLOR_RED,\"Hiba: Te nem vagy egy elég magas szintû hogy használd ezt a parancsot!\"); if ( sscanf ( params, \"s[128]\", string ) ) return SendClientMessage(playerid,COLOR_YELLOW,\"HASZNÁLAT: /asay [szöveg]\"); format( string, sizeof ( string ), \"Admin: %s\", params [ 0 ] ); return SendClientMessageToAll ( SZIN,string ); }CMD:report ( playerid, params [ ] ) { new gID, gMsg [ 128 ], string [ 128 ]; if ( sscanf ( params, \"us[128]\", gID, gMsg ) ) return SendClientMessage(playerid, COLOR_RED, \"Használat: /report [Játékos ID/Név] [Üzenet]\"); if ( !IsPlayerConnected ( gID ) && gID == INVALID_PLAYER_ID ) return SendClientMessage(playerid, COLOR_RED, \"Hiba: A játékos nem elérhetõ, vagy magadatválasztottad!\" ); { for ( new i = 0; i <GetMaxPlayers(); i++ ) if ( PlayerInfo [ i ] [ pLevel ] > 1000 ) // { new hour, minute, second; gettime ( hour, minute, second ); format ( string, sizeof ( string ), \"Bejelentés_ %s[iD: %d] bejelentette %s[iD: %d]-t! Indok: %s [|%d:%d:%d|]\", PlayerName ( playerid ), playerid, PlayerName ( gID ), gID, gMsg, hour, minute, second ); SendClientMessage ( i, SZIN,string ); SendClientMessage ( playerid, COLOR_YELLOW, \"Bejelentésed továbbítva az adminoknak!\" ); } } return 1;}stock PlayerName ( playerid ){new pname [ MAX_PLAYER_NAME ];GetPlayerName ( playerid, pname, MAX_PLAYER_NAME );return pname;}
Nemtom ezt hogy kellene megoldani csabesz,mert még eléggé kezdõ vok PM adnál egy elérhetõséget? kösz!