Gunpack system help
#1

i cant figure how to make the gunpack system can anyone help

commands
/gunpack1
/gunpack2
/gunpack3

code that i was trying to do
Код:
CMD:gunpack1(playerid,params[])
{
	if(GetPlayerScore(playerid) >= 300) // 300 score
	{
	 GivePlayerWeapon(playerid, 22, 100); // you may change the weaps here
     GivePlayerWeapon(playerid, 25, 100);
     GivePlayerWeapon(playerid, 29, 100);
     SendClientMessage(playerid, 0xFF0055, "You Have Used GunPack1");
	}
  return 1;
)
Reply
#2

Can you be more specific with what you want?
Because it seems you already made the first CMD, Whats the problem with the other 2?
Reply
#3

if you do want to make gunpack2 a gunpack3, i think it's easy for you.
You didn't even say what's the problem
Reply
#4

the problem is that the cmd dosent works and i know how to do the other cmds and it worked once but now it isnt working thats why i am asking for help i need you to show me how to make the /gunpack1 and others for like score requirments and i need you please to help me know where to type the command
Reply
#5

What about the command does not work?
Does it give you no weapons?
Does it give you the wrong weapons? What?
Reply
#6

bro i will work if you have +300 score
Reply
#7

can you please give me the right code for every gunpack command because it isnt compailing
in pawn
Reply
#8

Because the code is all wrong. This will work;

pawn Код:
CMD:gunpack1(playerid,params[])
{
    if(GetPlayerScore(playerid) >= 300) // 300 score
    {
        GivePlayerWeapon(playerid, 22, 100); // you may change the weaps here
        GivePlayerWeapon(playerid, 25, 100);
        GivePlayerWeapon(playerid, 29, 100);
        SendClientMessage(playerid, 0xFF0055, "You Have Used GunPack1");
    }
    else return SendClientMessage(playerid, 0xFFFFFF, "You do not have enough score to use this command.");
    return 1;
}
You closed it with ) instead of }
I also added that last line so if you don't have 300 or more score, the command won't work and you will get that message.
Reply
#9

Thank you all for your support it worked and i had a fail but i didnt know that i typed it wrong
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)