Jump to content



HGZ.RO - Mesaj destinat utilizatorilor neautentificați
Acest mesaj apare doar dacă nu ești logat în cont. Vezi opțiunile de mai jos:
Logare cont Cont nou

Toggle shoutbox Chat HGZ-ROMANIA

@  Dante Nikolas : (21 August 2017 - 06:20 AM) Neatza
@  XxLL_GG_AlexHG : (21 August 2017 - 06:19 AM) Noroc
@  Dante Nikolas : (21 August 2017 - 05:15 AM) Ok :)
@  Dragosel : (21 August 2017 - 05:11 AM) O sa intru pe el, imi plac serverele de genul :)
@  Dante Nikolas : (21 August 2017 - 05:10 AM) Da
@  Dragosel : (21 August 2017 - 05:06 AM) @Dante, ai server de CS 1.6 Zombie Mod?
@  Dante Nikolas : (21 August 2017 - 05:05 AM) Salut.
@  Dragosel : (21 August 2017 - 05:04 AM) Salut
@  laurentiu15 : (21 August 2017 - 04:47 AM) a doua zi nu am mai avut nimic
@  laurentiu15 : (21 August 2017 - 04:46 AM) am patit si eu bugul
@  Dante Nikolas : (21 August 2017 - 04:34 AM) Salut.
@  laurentiu15 : (21 August 2017 - 04:32 AM) salut
@  reymund1001 : (21 August 2017 - 01:14 AM) Dar pe alte servere pot intra
@  Dante Nikolas : (21 August 2017 - 01:12 AM) incearca si reinstaleaza jocul ...
@  reymund1001 : (21 August 2017 - 01:04 AM) si Cum sa rezolv sa nu am acest ban ? Pentru ca nu am avut cheat nu nimic doar m-a scos dintr-o data ...
@  reymund1001 : (21 August 2017 - 01:04 AM) Pai
@  Dante Nikolas : (21 August 2017 - 12:52 AM) si mie mi-a trimis PM... dar eu nu ma pricep cu sa-mp doar cu cs sunt scripter. :*
@  Legendary : (21 August 2017 - 12:51 AM) @reymund1001 ai ban pe ip, se intampla de la net cateodata da rr la router
@  Dante Nikolas : (21 August 2017 - 12:49 AM) :)
@  Legendary : (21 August 2017 - 12:49 AM) Da

Photo

Comenzi . ( Scripting ). Partea I


  • This topic is locked This topic is locked
1 reply to this topic

#1
Ramjex

Ramjex

    Members

  • PipPipPip
  •   Group:
    Members
  •   Posts:
    83
  •   Member Number:
    21
  •   Joined:
    11-March 17
  •   Reputation:
    16
    • Salutare HGZ. Astazi va voi da cateva comenzi scriptate de mine in pawno. Imi puteti lasa un reply cu alte comenzi vrute de voi, pareri, etc..
    •  
    •  
    •  
    • CMD:desync(playerid, params[])
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • SCM(playerid, -1, "Possibly players with desync:");
    • foreach(Player, i)
    • {
    • if(GetPlayerPing(i) >= 200)
    • {
    • format(szMessage, 256, "Name: %s - Ping: %d", GetName(i), GetPlayerPing(i));
    • SCM(playerid, COLOR_FRED, szMessage);
    • }
    • }
    • }
    • return 1;
    • }

     

    Comenzi pentru report-uri ca admin.

     

     

    • CMD:ar(playerid, params[])
    • {
    • new id;
    • if(sscanf(params, "u", id)) return SendUsage(playerid, "/ar [playerid]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • if(playerVariables[id][pReported] == 1)
    • {
    • SCM(id, COLOR_ATTACK, "Reportul tau a fost primit si este in curs de rezolvare.");
    • format(szMessage, sizeof(szMessage), "(/ar) %s has accepted %s's report.",GetName(playerid),GetName(id));
    • submitToHelpersAndAdmins(szMessage, COLOR_FRED);
    • playerVariables[playerid][pReportAccepted] = id;
    • playerVariables[id][pReported] = 0;
    • playerVariables[id][pReportAccepted2] = playerid;
    • }
    • }
    • }
    • return 1;
    • }
    • CMD:dr(playerid, params[])
    • {
    • new id;
    • if(sscanf(params, "u", id)) return SendUsage(playerid, "/dr [playerid]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • if(playerVariables[id][pReported] == 1)
    • {
    • SCM(id, COLOR_ATTACK, "Reportul tau a fost sters.");
    • format(szMessage, sizeof(szMessage), "(/dr) %s has deleted %s's report.",GetName(playerid), GetName(id));
    • submitToHelpersAndAdmins(szMessage, COLOR_FRED);
    • playerVariables[id][pReported] = 0;
    • }
    • }
    • }
    • return 1;
    • }
    • CMD:cr(playerid, params[])
    • {
    • new id, message[128];
    • if(sscanf(params, "us[128]", id, message)) return SendUsage(playerid, "/cr [playerid] [text]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • if(playerVariables[playerid][pReportAccepted] == id)
    • {
    • SCM(id, COLOR_ATTACK, "Reportul tau a fost rezolvat.");
    • format(szMessage, 256, "Admin %s: %s", GetName(playerid), message);
    • SCM(id, COLOR_ATTACK, szMessage);
    • format(szMessage, sizeof(szMessage), "(/cr) %s -> %s: %s",GetName(playerid), GetName(id),message);
    • submitToHelpersAndAdmins(szMessage, COLOR_FRED);
    • playerVariables[playerid][pReportAccepted] = -1;
    • playerVariables[id][pReportAccepted2] = -1;
    • }
    • }
    • }
    • return 1;
    • }
    • CMD:x(playerid, params[])
    • {
    • new id, message[128];
    • if(sscanf(params, "s[128]", message)) return SendUsage(playerid, "/x [text]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • id = playerVariables[playerid][pReportAccepted];
    • if(id >= 0)
    • {
    • format(szMessage, 256, "(/x) Admin %s: %s", GetName(playerid), message);
    • SCM(id, COLOR_ATTACK, szMessage);
    • SCM(playerid, COLOR_ATTACK, szMessage);
    • }
    • }
    • else
    • {
    • new id2 = playerVariables[playerid][pReportAccepted2];
    • if(id2 >= 0)
    • {
    • format(szMessage, 256, "(/x) Player %s: %s", GetName(playerid), message);
    • SCM(id2, COLOR_ATTACK, szMessage);
    • SCM(playerid, COLOR_ATTACK, szMessage);
    • }
    • }
    • }
    • return 1;
    • }

     

    Si ultima comanda. O comanda pentru a muta un vehicul unei factiuni.

     

    • CMD:vmove(playerid, params[]) {
    • if(playerVariables[playerid][pAdminLevel] >= 7) {
    •    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be inside the vehicle that you wish to move.");
    •  
    • new
    • string[42];
    •  
    •         for(new x = 0; x < MAX_VEHICLES; x++) {
    •             if(vehicleVariables[x][vVehicleScriptID] == GetPlayerVehicleID(playerid)) {
    •  
    •                 GetVehiclePos(x, vehicleVariables[x][vVehiclePosition][0], vehicleVariables[x][vVehiclePosition][1], vehicleVariables[x][vVehiclePosition][2]);
    • GetVehicleZAngle(x, vehicleVariables[x][vVehicleRotation]);
    •  
    • DestroyVehicle(vehicleVariables[x][vVehicleScriptID]);
    • vehicleVariables[x][vVehicleScriptID] = CreateVehicle(vehicleVariables[x][vVehicleModelID], vehicleVariables[x][vVehiclePosition][0], vehicleVariables[x][vVehiclePosition][1], vehicleVariables[x][vVehiclePosition][2], vehicleVariables[x][vVehicleRotation], vehicleVariables[x][vVehicleColour][0], vehicleVariables[x][vVehicleColour][1], 60000);
    • PutPlayerInVehicle(playerid, vehicleVariables[x][vVehicleScriptID], 0);
    •  
    •                 saveVehicle(x);
    •  
    • format(string, sizeof(string), "You have successfully moved vehicle %d.", x);
    • SendClientMessage(playerid, COLOR_WHITE, string);
    • return 1;
    • }
    •         }
    • }
    • else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    • return 1;
    • }

    • KmtWES, Cxsgvodo, FdrvUnwig and 5 others like this

    ----=====----=====----=====----


    Posted Image




    Posted Image


    ----=====----=====----=====----


    #2
    niku_tp7

    niku_tp7

      Scripter Real

  •   Group:
    Moderators Global
  •   Posts:
    271
  •   Member Number:
    1075
  •   Joined:
    26-May 17
  •   Reputation:
    22
  • Multumim pentru ajutor.


    Semant:NiKu_Tp7(Admin1337) pe pile.
    Niku.aNc13nT.Ro admin 2 lei
    Cel mai tare Forum.<3Posted Image


    0 user(s) are reading this topic

    0 members, 0 guests, 0 anonymous users