How To?
#1

How do i make a command so when i type it it gives you like 3 weapons?

Please Answere guys
Reply
#2

Your Begginner right?read the Scripting Basics but anyway,here is the command


Quote:

if(!strcmp(cmdtext, "/Yourcommand", true, 1)) //This is the command
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,COLOR_WHITE,"You get 3 weapons from my :*!");
GivePlayerWeapon(playerid, weaponid, ammo[1-500]); //Weapon ids
GivePlayerWeapon(playerid, weaponid, ammo[1-500]);
GivePlayerWeapon(playerid, weaponid, ammo[1-500]);
}
return 1;
}

Reply
#3

Quote:
Originally Posted by SkizzoTrick
Посмотреть сообщение
Your Begginner right?read the Scripting Basics but anyway,here is the command
He didnt ask for a admin one right?

pawn Код:
if (strcmp("/weapons", cmdtext, true, 10) == 0)
    {
        GivePlayerWeapon(playerid,24,100); // DEAGLE
        GivePlayerWeapon(playerid,31,100); // M4
        GivePlayerWeapon(playerid,29,100); // MP5 && 29 is the weapon id 100 is the ammo
        return 1;
    }
for more weapon ids please visit here https://sampwiki.blast.hk/wiki/Weapons !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)