if(strcmp(cmd, \"/duty\", true) == 0){ if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader] == 1) { if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint (3,playerid,273.1497,118.1322,1004.6172) || PlayerInfo[playerid][pLocal] != 255) { if(OnDuty[playerid]==0) { new dutyskin1 = PlayerInfo[playerid][pChar]; SetPlayerSkin(playerid, dutyskin1); format(string, sizeof(string), \"* Rendor %s kiveszi a fegyvereket és felveszi a ruhát.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 3, 100); GivePlayerWeapon(playerid, 1, 0); GivePlayerWeapon(playerid, 24, 1000); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 29, 1000); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { new originalskin = PlayerInfo[playerid][pModel]; SetPlayerSkin(playerid, originalskin); format(string, sizeof(string), \"* Rendor %s beteszi a szekrénybe a ruhát és a fegyvereit.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid, 0); OnDuty[playerid] = 0; } } else { SendClientMessage(playerid, COLOR_GRAD2, \" Nem vagy szekrénynél !\"); return 1; } } else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader] == 2) { { if(OnDuty[playerid]==0) { new dutyskin1 = PlayerInfo[playerid][pChar]; SetPlayerSkin(playerid, dutyskin1); format(string, sizeof(string), \"* FBI %s kiveszi a fegyvereket és felveszi a ruhát.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 29, 4000); GivePlayerWeapon(playerid, 16, 4000); GivePlayerWeapon(playerid, 31, 4000); GivePlayerWeapon(playerid, 33, 4000); GivePlayerWeapon(playerid, 34, 4000); GivePlayerWeapon(playerid, 17, 4000); GivePlayerWeapon(playerid, 24, 4000); GivePlayerWeapon(playerid, 45, 4000); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { new originalskin = PlayerInfo[playerid][pModel]; SetPlayerSkin(playerid, originalskin); format(string, sizeof(string), \"* FBI %s beteszi a szekrénybe a ruhát és a fegyvereit.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid, 0); OnDuty[playerid] = 0; } } } else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Leraktad a szolgálatot , nem tudod fogadni a hívásokat.\"); JobDuty[playerid] = 0; Medics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Szolgálatba álltál , mostantól tudod fogadni a hívásokat..\"); SendClientMessageToAll (COLOR_LIGHTBLUE, \"* A mentosök szolgállatban. Hívd oket ha szükséd van rájuk (/service medic).\"); JobDuty[playerid] = 1; Medics += 1; } } else if(PlayerInfo[playerid][pJob] == 7) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Kiléptél a szolgálatból.\"); JobDuty[playerid] = 0; Mechanics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Szolgálatba léptél.\"); JobDuty[playerid] = 1; Mechanics += 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, \" Nem vagy rendor! !\"); }}return 1;}
if(strcmp(cmd,\"/frisk\",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, \"USAGE: /frisk [játékosid/névrészlet]\"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, \"Nem motozhatod meg magad!\"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new text1[20], text2[20], text3[20], text4[20], text5[20], text6[20]; if(PlayerInfo[giveplayerid][pDrugs] > 0) { text1 = \"| Drog.\"; } else { text1 = \"| Üres a zsebe.\"; } if(PlayerInfo[giveplayerid][pMats] > 0) { text2 = \"| Material.\"; } else { text2 = \"| Üres a zsebe.\"; } if(Fishes[giveplayerid][pWeight1] > 0 || Fishes[giveplayerid][pWeight2] > 0 || Fishes[giveplayerid][pWeight3] > 0 || Fishes[giveplayerid][pWeight4] > 0 || Fishes[giveplayerid][pWeight5] > 0) { text3 = \"| Halak.\"; } else { text3 = \"| Üres a zsebe.\"; } if(PlayerInfo[giveplayerid][pPhoneBook] > 0) { text4 = \"| Telefon könyv.\"; } else { text4 = \"| Üres a zsebe.\"; } if(PlayerInfo[giveplayerid][pWatch] > 0) { text5 = \"| Valami.\"; } else { text5 = \"| Üres a zsebe.\"; } new sweapon, sammo; text6 = \"| Empty Pocket.\"; for (new i=0; i<9; i++) { GetPlayerWeaponData(giveplayerid, i, sweapon, sammo); if(sweapon != 0 && sammo != 0) { text6 = \"| Fegyver.\"; } } format(string, sizeof(string), \"|__________ %s zsebében lévo tárgyak: __________|\", giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), \"%s.\", text1); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), \"%s.\", text2); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), \"%s.\", text3); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), \"%s.\", text4); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), \"%s.\", text5); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), \"%s.\", text6); SendClientMessage(playerid, COLOR_GREY, string); if(PlayerInfo[giveplayerid][pSex] == 1) { format(string, sizeof(string), \"* %s megmotozta ot: %s\", sendername ,giveplayer); } else { format(string, sizeof(string), \"* %s megmotozta ot: %s\", sendername ,giveplayer); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY, \" Nincs ilyen játékos!\"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, \" A játékos nincs a szerveren!\"); return 1; }} return 1;}