if(strcmp(cmd, \"/szolgálat\", true) == 0 || strcmp(cmd, \"/szolgalat\", true) == 0){ if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { if(PlayerToPoint(20.0,playerid,1292.9324,-832.7597,1085.6328)) { if(OnDuty[playerid]==0) { SendClientMessage(playerid, COLOR_WHITE, \"Szolgálatba álltál.\"); GetPlayerName(playerid, sendername, sizeof(sendername)); new rang[50]; if(PlayerInfo[playerid][pRank] == 1) format(rang, sizeof(rang), \"\"); else if(PlayerInfo[playerid][pRank] == 2) format(rang, sizeof(rang), \"Őrmester\"); else if(PlayerInfo[playerid][pRank] == 3) format(rang, sizeof(rang), \"Zászlós\"); else if(PlayerInfo[playerid][pRank] == 4) format(rang, sizeof(rang), \"Hadnagy\"); else if(PlayerInfo[playerid][pRank] == 5) format(rang, sizeof(rang), \"Ezredes\"); else if(PlayerInfo[playerid][pRank] == 6) format(rang, sizeof(rang), \"Vezérőrnagy\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s Rendőr %s Szolgálatba Állt! Ha szükséged van rendőrre hívd! (( /112 ))\", sendername,rang); OOCNews(0x33AA33AA,string); SafeGivePlayerWeapon(playerid, 25, 30); // Shotgun SafeGivePlayerWeapon(playerid, 16, 2); // Gránát SafeGivePlayerWeapon(playerid, 24, 40); // Deagle SafeGivePlayerWeapon(playerid, 3, 1); // Gumibot SafeGivePlayerWeapon(playerid, 31, 500); // M4 SafeGivePlayerWeapon(playerid, 43, 20); // Fényképező SetPlayerArmour(playerid, 150); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { SendClientMessage(playerid, COLOR_WHITE, \"Kiléptél a szolgálatból.\"); SafeResetPlayerWeapons(playerid); SetPlayerArmour(playerid, 0); OnDuty[playerid] = 0; }
//----------------------------------[sETSKIN]------------------------------------------------if(strcmp(cmd, \"/skin\", true) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /skin [JátékosID/NévRészlet] [skinID]\"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 299 || level < 1) { SendClientMessage(playerid, COLOR_GREY, \"Rossz skinID!\"); return 1; } if (Admin(playerid, 3)) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); //PlayerInfo[para1][Munkaruha1] = level; //PlayerInfo[para1][Civilruha1] = level; format(string, sizeof(string), \"%s megváltoztatta a skined!\", sendername); SendClientMessage(para1, COLOR_WHITE, string); format(string, sizeof(string), \"%s skinjét megváltoztattad erre: %d\", giveplayer,level); SendClientMessage(playerid, COLOR_WHITE, string); //SetPlayerSkin(para1, PlayerInfo[para1][Munkaruha1]); SetPlayerSkin(para1, level); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s megváltoztatta %s kinézetét. SKINID: %d\",y,m,d,h,mi,s,nev,giveplayer,level); LoOoG(stringx); } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy főadmin!\"); }}return 1;}