how to make admin have a mini-gun
#1

hi all i want ur help to tell me how to make an admin have mini-gun

i want to help me with pic and codes

but put the pic that i must do to make a minigun with admins
thnx

pic+codes or video
Reply
#2

You could create a simple command like this:
pawn Код:
//Paste it under OnPlayerCommandText:
if(!strcmp(cmdtext, "/minigun", true, 7))
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You need to be a RCON-Admin to use this command!"); //Need to be RCON-Admin.
    GivePlayerWeapon(playerid,38,5000); //Minigun with 5000 ammo
    SendClientMessage(playerid,-1,"You got a minigun."); //Send a message!
    return 1;
}
This is just an example so play around with it.
Reply
#3

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
You could create a simple command like this:
pawn Код:
//Paste it under OnPlayerCommandText:
if(!strcmp(cmdtext, "/minigun", true, 7))
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You need to be a RCON-Admin to use this command!"); //Need to be RCON-Admin.
    GivePlayerWeapon(playerid,38,5000); //Minigun with 5000 ammo
    SendClientMessage(playerid,-1,"You got a minigun."); //Send a message!
    return 1;
}
This is just an example so play around with it.
i said with pic because i dont know how to put it in my server
Reply
#4

waiting a help
Reply
#5

Quote:
Originally Posted by Semo
Посмотреть сообщение
i said with pic because i dont know how to put it in my server
Your English is remarkable and can easily be understood sir. /sarc
Reply
#6

r u making fun of me??

i want help not fun at me plz
Reply
#7

Open your server script ***.pwn go to the line OnPlayerCommandText (CTRL + F for find it) and put the code bellow under the callback.
Reply
#8

i said pic plz unserstand me im so noob with these things i need pic
Reply
#9

Quote:
Originally Posted by Semo
Посмотреть сообщение
i said pic plz unserstand me im so noob with these things i need pic
LOL
Anyway,
Do you have skype? If yes add me there I will show you how to do it. Skype id = pfk3325.
Reply
#10

Quote:
Originally Posted by Semo
Посмотреть сообщение
i said pic plz unserstand me im so noob with these things i need pic
What are you doing here ? You should be reading tutorials on basic scripting, not searching for help in here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)