Need a litle litle help with cmd!
#1

Hello guys, i just want to know how to make this that you can choise the weapon you want... If you do /giveweapon playerid weapid

This one only give you deagle

pawn Код:
#include <a_samp>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Give Weapon CMD");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/giveweapon", true) == 0)
    {
        GivePlayerWeapon(playerid, 24, 500);
        SendClientMessage(playerid, 0xFF4444FF "You gave an weapon!");
        return 1;
    }
    return 0;
}
Reply
#2

This work but not like i want... How should be the code to give me the weap i want?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)