Gunpack system help -
efrim123 - 31.07.2013
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;
)
Re: Gunpack system help -
Facerafter - 31.07.2013
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?
Re: Gunpack system help -
DeMoX - 31.07.2013
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
Re: Gunpack system help -
efrim123 - 31.07.2013
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
Re: Gunpack system help -
Facerafter - 31.07.2013
What about the command does not work?
Does it give you no weapons?
Does it give you the wrong weapons? What?
Re: Gunpack system help -
DeMoX - 31.07.2013
bro i will work if you have +300 score
Re: Gunpack system help -
efrim123 - 31.07.2013
can you please give me the right code for every gunpack command because it isnt compailing
in pawn
Re: Gunpack system help -
Rillo - 31.07.2013
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.
Re: Gunpack system help -
efrim123 - 31.07.2013
Thank you all for your support it worked and i had a fail but i didnt know that i typed it wrong