Universal Hometown Roleplay
Silahkan login ke forum Universal Hometown Roleplay Forum

Join the forum, it's quick and easy

Universal Hometown Roleplay
Silahkan login ke forum Universal Hometown Roleplay Forum
Universal Hometown Roleplay
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Universal Hometown Roleplay

Selamat datang di forum Universal Hometown Roleplay SA-MP! Join server kita di 188.166.251.185

Latest topics
» SERVER INFORMATIONS
Rudiyanto's Jr. Scripter Application. EmptyMon Aug 15, 2016 8:10 pm by Valentino's

» [Pendaftaran Admin Scripter]
Rudiyanto's Jr. Scripter Application. EmptyFri Aug 05, 2016 1:05 pm by bagus

» Dimana tempat download GTA dan SAMP gratis?
Rudiyanto's Jr. Scripter Application. EmptyTue Aug 02, 2016 12:18 am by Leon Sykes

» The Story Life Of Leonardo_Balotelli
Rudiyanto's Jr. Scripter Application. EmptySun Jul 31, 2016 2:19 am by Leonardo_Balotelli

» [APPROVED] Exterminate Crime Syndicate
Rudiyanto's Jr. Scripter Application. EmptySun Jul 10, 2016 8:17 pm by Hreesang

» Create Families [Battz_Quix]
Rudiyanto's Jr. Scripter Application. EmptySun Jul 10, 2016 8:16 pm by Hreesang

» Pendaftaran Helper [Bagas_Mendez]
Rudiyanto's Jr. Scripter Application. EmptyThu Jul 07, 2016 8:53 pm by Hoffmann

» Pendaftaran LSPD Yang 1 (Bagas_Mendez)
Rudiyanto's Jr. Scripter Application. EmptyThu Jul 07, 2016 8:45 pm by Hoffmann

» Pendaftaran Helper #1 [CLOSED]
Rudiyanto's Jr. Scripter Application. EmptyTue Jul 05, 2016 9:48 pm by Shadow

User Yang Sedang Online
Total 1 user online :: 0 Terdaftar, 0 Tersembunyi dan 1 Tamu

Tidak ada

[ View the whole list ]


User online terbanyak adalah 34 pada Sat Dec 12, 2020 2:40 pm
April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     

Calendar Calendar

Pencarian
 
 

Display results as :
 


Rechercher Advanced Search


You are not connected. Please login or register

Rudiyanto's Jr. Scripter Application.

Go down  Message [Halaman 1 dari 1]

1Rudiyanto's Jr. Scripter Application. Empty Rudiyanto's Jr. Scripter Application. Wed Aug 19, 2015 3:36 pm

avataraang

avataraang

In-Game name: Fabiano Robinson
IRL Name: Rudiyanto
IRL Age: 19
PAWN/Scripting experience: Pernah scripting PAWN beberapa kali dan membuat beberapa command. Sekarang juga sedang kuliah Teknik informatika di sebuah universitas swasta dan so far udah belajar bahasa C yang syntaxnya ga jauh beda. Jadi sekalian mantepin skill programming disini.
Why we should choose you over anyone else: Karena saya berpengalaman scripting PAWN, selain itu juga punya basic programming yang cukup jadi modal dasar untuk mendaftar disini.
Country you are from: Indonesia

Attachment of any previous scripting work you would like to display:
cuma kirim 1 file karena kalo mau full itu ada banyak file.

Code:

CMD:aod(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
    new aname[30], msg[512];
    GetPlayerName(playerid,aname,sizeof(aname));

    if(pInfo[playerid][aduty]==0){
    for(new i; i<MAX_PLAYERS; i++){
      if(pInfo[playerid][Admin] > 0){
         format(msg,sizeof(msg),"Notification : Admin %s now on duty",aname);
         SendClientMessage(i, COLOR_RED, msg);}
   }
   pInfo[playerid][aduty]=1;
   SetPlayerColor(playerid,COLOR_RED);}

   else {
    for(new i; i<MAX_PLAYERS; i++){
      if(pInfo[playerid][Admin] > 0){
         format(msg,sizeof(msg),"Notification : Admin %s now off duty",aname);
         SendClientMessage(i, COLOR_RED, msg);}
   }
   pInfo[playerid][aduty]=0;
   SetPlayerColor(playerid,COLOR_WHITE);}
    return 1;
}

CMD:god(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    if(pInfo[playerid][gmode]==0){
   SetPlayerHealth(playerid,999999999);
   SendClientMessage(playerid, COLOR_RED, "GOD MODE:ON");
   pInfo[playerid][gmode] = 1;}
   else {
    SetPlayerHealth(playerid,100);
   SendClientMessage(playerid, COLOR_RED, "GOD MODE:OFF");
   pInfo[playerid][gmode] = 0;}
    return 1;
}

CMD:cname(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new id, msg1[100], msg2[100], pname[100], cname[100], aname[100];
    if(sscanf(params,"us[100]",id,pname)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /cname [Player name/Player id] [name to change]");
    GetPlayerName(playerid,aname,sizeof(aname));
    GetPlayerName(id,cname,sizeof(cname));
    format(msg2,sizeof(msg2),"You change %s's name into %s",cname,pname);
   SendClientMessage(playerid, COLOR_GREEN, msg2);

   format(msg1,sizeof(msg1),"Your name is changed by %s to %s",aname,pname);
   SendClientMessage(id, COLOR_GREEN, msg1);
    SetPlayerName(id, pname);
    return 1;
}

CMD:setweather(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new weid, msg2[100], aname[100];
    if(sscanf(params,"i",weid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /setweather [id]");
    GetPlayerName(playerid,aname,sizeof(aname));
    format(msg2,sizeof(msg2),"The weather has been changed by %s",aname);
   SendClientMessageToAll(COLOR_WHITE, msg2);
   SetWeather(weid);
    return 1;
}

CMD:settime(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new weid, msg2[100], aname[100];
    if(sscanf(params,"i",weid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /settime [id]");
    GetPlayerName(playerid,aname,sizeof(aname));
    if(weid >=0 && weid < 24){
    format(msg2,sizeof(msg2),"The world time has been changed by %s",aname);
   SendClientMessageToAll(COLOR_WHITE, msg2);
   SetWorldTime(weid);}
   else return SendClientMessage(playerid,COLOR_RED,"Invalid time!");
    return 1;
}

CMD:kick(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new id, msg1[100], msg2[100], reason[100], pname[100], aname[100];
    if(sscanf(params,"us[100]",id,reason)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /kick [Player name/Player id] [reason]");
    GetPlayerName(playerid,aname,sizeof(aname));
    GetPlayerName(id,pname,sizeof(pname));
    format(msg2,sizeof(msg2),"%s has been kicked by %s",pname,aname);
   SendClientMessageToAll(COLOR_RED, msg2);

   format(msg1,sizeof(msg1),"Reason : %s",reason);
   SendClientMessageToAll(COLOR_RED, msg1);
    Kick(id);
    return 1;
}

CMD:list(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

   new type[10];
    if(sscanf(params,"s",type)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /list [report/ask]");
   new idxl, resl[1536], tline[52], pname[30];
       if(!strcmp(type, "report")){
            for(new slt = 0; slt < MAX_REPORT; slt++)
                {
                    if( report[reportSlotstat][slt] )
                    {
                  GetPlayerName(report[reporterID][slt],pname,sizeof(pname));
                  format(tline, sizeof tline, "REPORT ID : %i - REPORTER : %s[%i]\n", slt+1,pname,report[reporterID][slt]);
                    strcat(resl, tline, sizeof resl);
                    idxl++;
                    }
               else {format(tline, sizeof tline, "REPORT ID : %i - Empty\n", slt+1);
                    strcat(resl, tline, sizeof resl);
                    idxl++;}
               }
               ShowPlayerDialog(playerid, dreport, DIALOG_STYLE_LIST, "Report List", resl, "Detail", "Close");
               }
                   
      if(!strcmp(type, "ask")){
           for(new slt = 0; slt < MAX_REPORT; slt++)
                {
                    if( ask[askSlotstat][slt] )
                    {
                  GetPlayerName(ask[askerID][slt],pname,sizeof(pname));
                        format(tline, sizeof tline, "QUESTION ID : %i - ASKER : %s[%i]\n", slt+1,pname,ask[askerID][slt]);
                    strcat(resl, tline, sizeof resl);
                    idxl++;
                    }
               else {format(tline, sizeof tline, "QUESTION ID : %i - Empty\n", slt+1);
                    strcat(resl, tline, sizeof resl);
                    idxl++;}
               }
               ShowPlayerDialog(playerid, dask, DIALOG_STYLE_LIST, "Report List", resl, "Detail", "Close");
               }
              // if(!idxl) return SendClientMessage(playerid, COLOR_RED, "Info: You have no report on the list.");

    return 1;
}

CMD:ac(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");

    new msg[400], chat[1000], aname[30];
    if(sscanf(params,"s[400]",msg)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /ac [chat]");
    GetPlayerName(playerid,aname,sizeof(aname));

   for(new i; i<MAX_PLAYERS; i++){
      if(pInfo[playerid][Admin] > 0){
         format(chat,sizeof(chat),"(( %s: %s ))",aname,msg);
         SendClientMessage(i, COLOR_GREEN, chat);}
   }
    return 1;
}

CMD:respond(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new rid,msg[100],aname[100];
    if(sscanf(params,"i",rid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /respond [ID]");
    GetPlayerName(playerid,aname,sizeof(aname));
   for(new i; i<MAX_PLAYERS; i++){
      if(pInfo[playerid][Admin] > 0){
         format(msg,sizeof(msg),"ADMINFO : %s Respond report with ID : %i",aname,rid);
         SendClientMessage(i, COLOR_YELLOW, msg);}
   }
   new fid = rid-1;
    report[reportSlot][fid] = 0;
   report[reportSlotstat][fid] = 0;
   report[reporterID][fid] = 0;
    return 1;
}

CMD:answer(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new qid,answer[100],msg[100],aname[100];
    if(sscanf(params,"is[100]",qid,answer)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /answer [ID] [Your answer]");
    GetPlayerName(playerid,aname,sizeof(aname));
    for(new i; i<MAX_PLAYERS; i++){
      if(pInfo[playerid][Admin] > 0){
         format(msg,sizeof(msg),"ADMINFO : %s answer the question with ID : %i",aname,qid);
         SendClientMessage(i, COLOR_GREEN, msg);}
   }
   format(msg,sizeof(msg),"ANSWER : %s",answer);
   new fid = qid-1;
   SendClientMessage(report[reporterID][fid], COLOR_GREEN, msg);
    ask[askSlot][fid]=0;
   ask[askSlotstat][fid]=0;
   ask[askerID][fid]=0;
    return 1;
}

CMD:a(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
   
    new msg[150], chat[512], aname[30];
    if(sscanf(params,"s[150]",msg)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /a [chat]");
    GetPlayerName(playerid,aname,sizeof(aname));
   
   format(chat,sizeof(chat),"%s %s: %s",cadmin(pInfo[playerid][Admin]),aname,msg);
   SendClientMessageToAll(COLOR_MAGENTA,chat);

    return 1;
}

CMD:heal(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new id, aname[100],msg1[100];
    if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /heal [Player name/Player id]");

    GetPlayerName(playerid,aname,sizeof(aname));
   format(msg1,sizeof(msg1),"You are healed by %s",aname);
   SendClientMessage(id, COLOR_GREEN, msg1);
    SetPlayerHealth(id, 100);
    return 1;
}

CMD:kill(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new id, aname[100],msg1[100];
    if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /kill [Player name/Player id]");

    GetPlayerName(playerid,aname,sizeof(aname));
   format(msg1,sizeof(msg1),"You have been killed by %s",aname);
   SendClientMessage(id, COLOR_GREEN, msg1);
    SetPlayerHealth(id, 0);
    return 1;
}

CMD:setadmin(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new pid, alevel,msg1[100];
    if(sscanf(params,"ui",pid,alevel)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /setadmin [Player name/Player id] [adminlevel]");

   if(pInfo[pid][Admin] == 0){
   format(msg1,sizeof(msg1),"ADMINFO : Yeay! You are invited to admin team as %s!",cadmin(alevel));
   SendClientMessage(pid, COLOR_GREEN, msg1);}
   
   else if(alevel == 0){
   format(msg1,sizeof(msg1),"ADMINFO : You were kicked out from Admin Team!");
   SendClientMessage(pid, COLOR_GREEN, msg1);}
   
   else if(pInfo[pid][Admin] < alevel){
   format(msg1,sizeof(msg1),"ADMINFO : You are now promoted as %s on Admin Team!",cadmin(alevel));
   SendClientMessage(pid, COLOR_GREEN, msg1);}
   
   else if(pInfo[pid][Admin] > alevel){
   format(msg1,sizeof(msg1),"ADMINFO : You are now demoted from %s to %s!",cadmin(pInfo[pid][Admin]),cadmin(alevel));
   SendClientMessage(pid, COLOR_GREEN, msg1);}
    pInfo[pid][Admin] = alevel;
    return 1;
}

CMD:setskin(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new plid, skinid,aname[100], msg1[100];
    if(sscanf(params,"ui",id,skinid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /setskin [Player name/Player id] [skinid]");

    GetPlayerName(playerid,aname,sizeof(aname));
   format(msg1,sizeof(msg1),"Your skin ID was set to %d by %s",skinid,aname);
   SendClientMessage(plid, COLOR_GREEN, msg1);
   SetPlayerSkin(playerid,skinid);
    pInfo[plid][skin] = skinid;
    return 1;
}

CMD:givegun(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
   
    new id, gun, bul,msg1[512];
    if(sscanf(params,"uk<weapon>i",id,gun,bul)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /givegun [Player name/Player id] [Gunid/Gun name] [Ammo]");
    format(msg1,sizeof(msg1),"Your were given a %s with %i ammo",cweap(gun),bul);
   SendClientMessage(id, COLOR_GREEN, msg1);
    GivePlayerWeapon(id,gun,bul);
    return 1;
}

CMD:cc(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new id;
    if(sscanf(params,"i",id)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /cc [row]");
   clrcht(id,playerid);

    return 1;
}

CMD:ann(playerid, params[])
{
        if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
      if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
      new ann[128],type;
      if(sscanf(params,"is[128]",type,ann)) return SendClientMessage(playerid,-1, "USAGE: /ann [typeid] [text]");
      if(type>6 && type==2) return SendClientMessage(playerid, -1, "Invalid type ID!!");
      else GameTextForAll(ann, 1000, type);
      return 1;
}

new jailStat[MAX_PLAYERS],jailTime[MAX_PLAYERS];
CMD:jail(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new pid,type[30],aname[100],pname[100],jail1[256],jail2[256],reason[30];

    if(sscanf(params,"sz",type,params)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /jail [jail/release]");
    GetPlayerName(playerid,aname,sizeof(aname));
    GetPlayerName(pid,pname,sizeof(pname));
   
    if(!strcmp(type, "jail")){
        if(sscanf(params,"us[30]",pid,reason)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /jail [jail] [Player name/Player id] [reason]");
        if(jailStat[id]==1) return SendClientMessage(playerid,COLOR_RED,"The player still at jail, fool!");
      else{
       SetPlayerPos(pid,-10.0349,2336.7146,24.3034);
       format(jail1,sizeof(jail1),"ADMCMD : %s has been jailed by %s",pname,aname);
       format(jail2,sizeof(jail2),"REASON : %s",reason);
      SendClientMessageToAll(COLOR_RED, jail1);
      SendClientMessageToAll(COLOR_RED, jail2);
      jailStat[pid]=1;}
   }

   if(!strcmp(type, "release")){
      if(sscanf(params,"u",pid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /jail [release] [Player name/Player id]");

    GetPlayerName(playerid,aname,sizeof(aname));
    GetPlayerName(pid,pname,sizeof(pname));
   if(jailStat[id]==0) return SendClientMessage(playerid,COLOR_RED,"The player isn't at jail, fool!");
   else{
   format(jail1,sizeof(jail1),"ADMCMD : %s has been released by %s",pname,aname);
   SendClientMessageToAll(COLOR_RED, jail1);
    SetPlayerPos(pid,1742.7709,-1854.7775,13.4141,2.0505);
   jailStat[pid]=0;}
   }

    return 1;
}


CMD:get(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new getid, scmd[100], Float:x,Float:y,Float:z;
    if(sscanf(params,"si",scmd,getid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /get [player/veh] [ID]");
    GetPlayerPos(playerid,x,y,z);
   
   if(!strcmp(scmd, "player")){
    SetPlayerPos(getid, x+1, y+1, z+3,0,0,0,-1);
    SetPlayerVirtualWorld(getid, GetPlayerVirtualWorld(playerid));}
   if(!strcmp(scmd, "veh")){
   SetVehiclePos(getid, x+4, y+1, z,0,0,0,-1);
   SetVehicleVirtualWorld(getid, GetPlayerVirtualWorld(playerid));}

    return 1;
}
      
CMD:go(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new goid, scmd[100], Float:x,Float:y,Float:z;
    if(sscanf(params,"si",scmd,goid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /go [player/veh] [ID]");

   if(!strcmp(scmd, "player")){
    GetPlayerPos(goid,x,y,z);
    SetPlayerPos(playerid, x+1, y+1, z+3,0,0,0,-1);
   SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(goid));}
   if(!strcmp(scmd, "veh")){
    GetVehiclePos(goid,x,y,z);
   SetPlayerPos(playerid, x, y, z+4,0,0,0,-1);
   SetPlayerVirtualWorld(playerid, GetVehicleVirtualWorld(goid));}

    return 1;
}

CMD:up(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(playerid, x, y, z+5,0,0,0,-1);
    return 1;
}
CMD:dn(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(playerid, x, y, z-5,0,0,0,-1);
    return 1;
}
CMD:lf(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(playerid, x, y+5, z,0,0,0,-1);
    return 1;
}
CMD:rg(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(playerid, x, y-5, z,0,0,0,-1);
    return 1;
}
CMD:fw(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(playerid, x+5, y, z,0,0,0,-1);
    return 1;
}
CMD:bw(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(playerid, x-5, y, z,0,0,0,-1);
    return 1;
}
new togjetpack[MAX_PLAYERS];
CMD:jetpack(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
    if(togjetpack[playerid] == 1){SetPlayerSpecialAction(playerid,0); togjetpack[playerid] = 0;}
    else {SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); togjetpack[playerid] = 1;}
    return 1;
}

CMD:spec(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new stat[10],id;
    if(sscanf(params,"si",stat,id)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /spec [off/player/veh] [ID]");
    if(!IsPlayerConnected(id)) SendClientMessage(playerid, COLOR_RED, "Admwarn: that player isn't active.");
    if(id==playerid) SendClientMessage(playerid, COLOR_RED, "Admwarn: You can's spec yourself IDIOT.");
    if(pInfo[id][Admin]==6) SendClientMessage(playerid, COLOR_RED, "HAHAHAHA, you can't spec me! I am the server owner!! HAHAHAHAAH!!");
      if(!strcmp(stat, "player")){
      TogglePlayerSpectating(playerid, 1);
      PlayerSpectatePlayer(playerid, id);
      SetPlayerInterior(playerid,GetPlayerInterior(id));}
      
      if(!strcmp(stat, "veh")){
      TogglePlayerSpectating(playerid, 1);
      PlayerSpectateVehicle(playerid, id);}
      
      if(!strcmp(stat, "off")){
      TogglePlayerSpectating(playerid, 0);}
    return 1;
}

COMMAND:money(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");
   
      new toplayerid, amount,act[10];
        if(sscanf(params,"s[10]ui",act,toplayerid,amount)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /money [give/take] [Player name/Player id] [ammount]");
      if(!strcmp(act, "give")){
      pInfo[playerid][Money] = pInfo[playerid][Money]+amount;
      GivePlayerMoney(toplayerid, amount);}
        if(!strcmp(act, "take")){
      pInfo[playerid][Money] = pInfo[playerid][Money]-amount;
      GivePlayerMoney(toplayerid, -amount);}
    return 1;
}

CMD:veh(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new vehid, scmd[15],t[100], Float:x,Float:y,Float:z;
    if(sscanf(params,"s[15]z",scmd,params)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /veh [create/burn/delete/repair]");

   if(!strcmp(scmd, "create")){
   if(sscanf(params,"k<vehicle>",vehid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /veh [create] [vehicle name/model id]");
    GetPlayerPos(playerid,x,y,z);
    CreateVehicle(vehid, x+4, y+4, z,0,0,0,-1);
   format(t,sizeof(t),"You spawned a %s",cveh(vehid));
   SendClientMessage(playerid, COLOR_GREEN, t);}

    if(!strcmp(scmd, "burn")){
    if(sscanf(params,"i",vehid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /veh [burn] [Vehicle ID]");
    SetVehicleHealth(vehid,225);}

    if(!strcmp(scmd, "repair")){
    if(sscanf(params,"i",vehid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /veh [repair] [Vehicle ID]");
    RepairVehicle(vehid);}

    if(!strcmp(scmd, "delete")){
    if(sscanf(params,"i",vehid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /veh [delete] [Vehicle ID]");
    DestroyVehicle(vehid);}

    return 1;
}

CMD:check(playerid, params[])
{
    if(pInfo[playerid][Admin] < 1) return SendClientMessage(playerid,COLOR_RED, "You are not allowed to use this command");
   if(pInfo[playerid][aduty]==0) return SendClientMessage(playerid,COLOR_RED, "You must On duty to use this command");

    new pid, pname[256], msg1[256], msg2[256], msg3[256], msg4[256];
    if(sscanf(params,"u",pid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /check [playerid]");
    GetPlayerName(pid,pname,sizeof(pname));
    SendClientMessage(id, COLOR_GREEN, "=================== Player Information ===================");
   format(msg1,sizeof(msg1),"Username:%s  PID:%i ",pname,pInfo[pid][ID]);
   format(msg2,sizeof(msg2),"Faction Member:%s  ",fInfo[pInfo[pid][fammember]][name]);
   format(msg3,sizeof(msg3),"Money:$%i  HP:%f  AP:%f  Skinid:%i",pInfo[pid][Money],pInfo[pid][hp],pInfo[pid][ap],pInfo[pid][skin]);
    format(msg4,sizeof(msg4),"Admin Rank:%s  ",cadmin(pInfo[playerid][Admin]));
   SendClientMessage(playerid, COLOR_GREEN, msg1);
   SendClientMessage(playerid, COLOR_GREEN, msg2);
   SendClientMessage(playerid, COLOR_GREEN, msg3);
   SendClientMessage(playerid, COLOR_GREEN, msg4);
    return 1;
}

Kembali Ke Atas  Message [Halaman 1 dari 1]

Permissions in this forum:
Anda tidak dapat menjawab topik