GivePlayerWeapon don't change..
#1

Hi, i put this GM: https://sampforum.blast.hk/showthread.php?tid=45318


I delete all lines in pawno with Combat Shotgun weapon but it still don't change..
I replace all lines in pawno and still have the C-Shotgun when a player spawn.

What can i do?
Reply
#2

server can give in 2 methd the guns, one from them is in AddPlayerClass
https://sampwiki.blast.hk/wiki/AddPlayerClass

for you not give any guns to player when he/she spawn just write:
AddPlayerClass((id of skine), x, y, z, angle, 0, 0, 0, 0, 0, 0)
Reply
#3

All spawn's with other weapon's(9mm,pool clue..etc... what's the problem?


it's from filterscripts? I use: base gl_actions gl_property gl_realtime gl_mapicon ls_elevator
Quote:

//Grove
AddPlayerClass(105, 2518.3884,-1677.9973,14.4665,60.7246, 4, 1, 24, 200, 29, 1000, 30, 2000);
AddPlayerClass(106, 2518.3884,-1677.9973,14.4665,60.7246, 5, 1, 24, 200, 29, 1000, 30, 2000);
AddPlayerClass(107, 2518.3884,-1677.9973,14.4665,60.7246, 8, 1, 24, 200, 29, 1000, 30, 2000);
//Ballas
AddPlayerClass(102, 2232.1987,-1159.6497,29.7969,357.6088, 4, 1, 24, 200, 28, 1000, 30, 2000);
AddPlayerClass(103, 2232.1987,-1159.6497,29.7969,357.6088, 5, 1, 24, 200, 28, 1000, 30, 2000);
AddPlayerClass(104, 2232.1987,-1159.6497,29.7969,357.6088, 8, 1, 24, 200, 28, 1000, 30, 2000);
//Aztecas
AddPlayerClass(114, 2788.9661,-1611.9891,10.9219,339.3374, 4, 1, 34, 200, 32, 1000, 30, 2000);
AddPlayerClass(115, 2788.9661,-1611.9891,10.9219,339.3374, 5, 1, 24, 200, 32, 1000, 30, 2000);
AddPlayerClass(116, 2788.9661,-1611.9891,10.9219,339.3374, 8, 1, 24, 200, 32, 1000, 30, 2000);
//PD
AddPlayerClass(280, 1565.5336,-1694.7849,5.8906,174.2839, 3, 1, 24, 200, 29, 1000, 31, 2000);
AddPlayerClass(285, 1565.5336,-1694.7849,5.8906,174.2839, 3, 1, 24, 200, 29, 1000, 31, 2000);
AddPlayerClass(284, 1565.5336,-1694.7849,5.8906,174.2839, 3, 1, 24, 200, 29, 1000, 31, 2000);
//Military
AddPlayerClass(287, 2749.8677,-2449.0308,13.6484,1.2041, 4, 1, 31, 600, 24, 200, 16, 3);
//Triads
AddPlayerClass(117, 671.9008,-1267.0142,13.6250,85.6112, 4, 1, 34, 200, 28, 1000, 30, 2000);
AddPlayerClass(118, 671.9008,-1267.0142,13.6250,85.6112, 8, 1, 24, 200, 28, 1000, 30, 2000);
AddPlayerClass(120, 671.9008,-1267.0142,13.6250,85.6112, 8, 1, 24, 200, 28, 1000, 30, 2000);

Reply
#4

Check other filterscripts and also when you changed it did u compile it ?
Reply
#5

I can't compile it, error:
Quote:

D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(25) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(25) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(26) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(26) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(27) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(27) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(29) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(29) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(30) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(30) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(31) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(31) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(33) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(33) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(34) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(34) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(35) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(35) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(37) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(37) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(3 : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(3 : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(39) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(39) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(41) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(41) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(43) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(43) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(44) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(44) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(45) : warning 202: number of arguments does not match definition
D:\Download\LSGDM v0.1\gamemodes\atdm.pwn.pwn(45) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


32 Warnings.

The thing is this:

I use a Gang Wars Gamemode, i changed all weapons for each character on each gang ( knife deagle mp5 ak47 ) and is still fk'd up!

EX: I chose Grove NR1 he spawn's with knife deagle mp5 ak47 ( what i put in script )
I chose Grove NR2 he spawn's with random weapon's...
I chose Triad NR1 he spawn's with knife deagle mp5 ak47 ( what i put in script )
I chose Triad Nr2 he spawn's with random weapon's..

and so go....
Reply
#6

Put 0 instead of deleting it.
Reply
#7

Now i just replace it with my custom weapon's id's but the thing is that above ^^
Reply
#8

bump?
Reply
#9

I think that you're confusing the classes check, maybe the weapons inserted on AddPlayerClass are giving wrong weapons for the players. Post the code that you give the weapons.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)