GivePlayerWeapon problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GivePlayerWeapon problem (
/showthread.php?tid=79450)
GivePlayerWeapon problem -
hanzen - 28.05.2009
pawn Код:
new Menu:current2;
current2 = GetPlayerMenu(playerid);
if(current2 == armory)
{
switch(row)
{
case 0:{
GivePlayerWeapon(playerid, 365, 65000);
}
case 1:{
GivePlayerWeapon(playerid, 334, 65000);
}
case 2:{
GivePlayerWeapon(playerid, 348, 65000);
}
case 3:{
GivePlayerWeapon(playerid, 349, 65000);
}
case 4:{
GivePlayerWeapon(playerid, 353, 65000);
}
case 5:{
GivePlayerWeapon(playerid, 358, 65000);
}
case 6:{
GivePlayerWeapon(playerid, 356, 65000);
}
}
}
Menu shows, but you aint getting any weapon.
Re: GivePlayerWeapon problem -
Gozerr - 28.05.2009
https://sampwiki.blast.hk/wiki/Weapons
Look at your ID's and They one's listed there...
FIXED For ya:
pawn Код:
new Menu:current2;
current2 = GetPlayerMenu(playerid);
if(current2 == armory)
{
switch(row)
{
case 0:{
GivePlayerWeapon(playerid, 41, 65000);
}
case 1:{
GivePlayerWeapon(playerid, 3, 65000);
}
case 2:{
GivePlayerWeapon(playerid, 24, 65000);
}
case 3:{
GivePlayerWeapon(playerid, 25, 65000);
}
case 4:{
GivePlayerWeapon(playerid, 26, 65000);
}
case 5:{
GivePlayerWeapon(playerid, 34, 65000);
}
case 6:{
GivePlayerWeapon(playerid, 31, 65000);
}
}
}
Re: GivePlayerWeapon problem -
SpiderPork - 28.05.2009
Don't use model IDs, use normal IDs.
Re: GivePlayerWeapon problem -
hanzen - 28.05.2009
I fail big time xd
Does anyone know how to do a skinchange? You know so they can select between 6 chars? Using next and done commands?
Re: GivePlayerWeapon problem -
Gozerr - 28.05.2009
pawn Код:
ForceClassSelection(playerid);
Re: GivePlayerWeapon problem -
hanzen - 28.05.2009
Quote:
Originally Posted by Gozerr
pawn Код:
ForceClassSelection(playerid);
|
There should only be a limited of skins i.e 445, 142, 545 ( example skins ) < You can navigate them by using next and done >