if (strcmp(cmdtext, \"/adrang\",true) == 0) {if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: /adrang [playerid/PartOfName] [Rang(1-6)]\"); return 1; } new para1; new level; new rtext[70] = \"ShowStats\"; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 0 || level < 6) { SendClientMessage(playerid, COLOR_GREY, \" A szám minimum 0 és maximum 6 lehet!!\"); return 1; } if (Info[playerid][leader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); Info[giveplayerid][ranks] = level; format(string, sizeof(string), \"Új rangot kaptál a fonöködtol (%d %s)\", ranks, rtext); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), \"Új rangot adtál %s-nak/nek. Új Rangja: %d.(%s)\", giveplayer, level, rtext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(Info[playerid][member] == 1)//FBI { if(level == 1) { Info[para1][skin] = 166; } //rang 1. if(level == 2) { Info[para1][skin] = 166; } //rang 2. if(level == 3) { Info[para1][skin] = 165; } //rang 3. if(level == 4) { Info[para1][skin] = 164; } //rang 4. if(level == 5) { Info[para1][skin] = 163; } //rang 5. if(level == 6) { Info[para1][skin] = 286; } //rang 6. } if(Info[playerid][member] == 2)//Rendor { if(level == 1) { Info[para1][skin] = 280; } //rang 1. if(level == 2) { Info[para1][skin] = 280; } //rang 2. if(level == 3) { Info[para1][skin] = 281; } //rang 3. if(level == 4) { Info[para1][skin] = 281; } //rang 4. if(level == 5) { Info[para1][skin] = 282; } //rang 5. if(level == 6) { Info[para1][skin] = 283; } //rang 6. } if(Info[playerid][member] == 3)//Mentos/Orvos { if(level == 1) { Info[para1][skin] = 276; } //rang 1. if(level == 2) { Info[para1][skin] = 276; } //rang 2. if(level == 3) { Info[para1][skin] = 275; } //rang 3. if(level == 4) { Info[para1][skin] = 274; } //rang 4. if(level == 5) { Info[para1][skin] = 274; } //rang 5. if(level == 6) { Info[para1][skin] = 70; } //rang 6. } if(Info[playerid][member] == 4)//Varios Los Aztecas { if(level == 1) { Info[para1][skin] = 173; } //rang 1. if(level == 2) { Info[para1][skin] = 174; } //rang 2. if(level == 3) { Info[para1][skin] = 175; } //rang 3. if(level == 4) { Info[para1][skin] = 106; } //rang 4. if(level == 5) { Info[para1][skin] = 115; } //rang 5. if(level == 6) { Info[para1][skin] = 114; } //rang 6. } if(Info[playerid][member] == 5)//Yakuza { if(level == 1) { Info[para1][skin] = 117; } //rang 1. if(level == 2) { Info[para1][skin] = 118; } //rang 2. if(level == 3) { Info[para1][skin] = 111; } //rang 3. if(level == 4) { Info[para1][skin] = 120; } //rang 4. if(level == 5) { Info[para1][skin] = 126; } //rang 5. if(level == 6) { Info[para1][skin] = 123; } //rang 6. //Noi skinek: 169, 293 } }else{SendClientMessage(playerid, COLOR_RED, \"A játékos még nincs bejelentkezve.Várd meg míg belép.Ne légy türelmetlen.\");} }else{SendClientMessage(playerid, COLOR_GRAD1, \"Elobb jelentkezz be IQ betyár x?.\");} }else{SendClientMessage(playerid, COLOR_RED, \"Majd ha fonök/vezér leszel megteheted...\");}}return 1;}
/adrang Adam_McCormick 6[/quote]A 6os az mi a végén?
Hy./adrang Adam_McCormick 6A 6os az mi a végén? [/quote]A scriptet nem nézted meg? /adrang [kinek] [hanyas] <- rangot ad a playernek, és a 6os az, hogy hanyas rangot adjon.
/adrang Adam_McCormick 6
if(strcmp(cmd, \"/car\", true) == 0){ if(IsPlayerConnected(playerid)) { if (Info[playerid][admin] < 9) { SendClientMessage(playerid, COLOR_GRAD1, \" Kicsi a szinted hozzá!(szükséges adminszint: 9)\"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /car [carid] [szín1] [szín2]\"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, \" Az Autó ID-nek 400 és 611 között kell lennie !\"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /car [carid] [szín1] [szín2]\"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, \" A Szín ID-nek 0 és 126 között kell lennie !\"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /car [carid] [szín1] [szín2]\"); return 1; } new color2; color2 = strval(tmp); if(color2 <= 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, \" A Szín ID-nek 0 és 126 között kell lennie !\"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = GetPlayerVehicleID(playerid); CreatedCars[CreatedCar] = carid; CreatedCar ++;}return 1;}