SA-MP Forums Archive
help me weapon bugged - 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: help me weapon bugged (/showthread.php?tid=264437)



help me weapon bugged - handerson - 26.06.2011

i put this in my gamemode

Quote:

public GivePlayerSomeWeaps(playerid)
{

SetTimerEx("Hidetext", 3000, 0, "i", playerid);
SetTimerEx("Rankbonus",1000,0,"i", playerid);
TextDrawShowForPlayer(playerid, Textyoit);
if(GetPlayerSkin(playerid) == 111 || GetPlayerSkin(playerid) == 124 || GetPlayerSkin(playerid) == 70 || GetPlayerSkin(playerid) == 112 ) //assault
{
GivePlayerWeapon(playerid, 31, 150);
GivePlayerWeapon(playerid, 29, 100);
GivePlayerWeapon(playerid, 25, 25);
GivePlayerWeapon(playerid, 23, 200);
SetPlayerTeam(playerid, 1);
}
if(GetPlayerSkin(playerid) == 287 || GetPlayerSkin(playerid) == 120 || GetPlayerSkin(playerid) == 68 || GetPlayerSkin(playerid) == 113) //anti-tank
{
GivePlayerWeapon(playerid, 16, 15);
GivePlayerWeapon(playerid, 18, 10);
GivePlayerWeapon(playerid, 35, 20);
GivePlayerWeapon(playerid, 24, 25);
SetPlayerTeam(playerid, 1);
}
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 294 || GetPlayerSkin(playerid) == 59 || GetPlayerSkin(playerid) == 114) //Support Squad
{
GivePlayerWeapon(playerid, 26, 25);
GivePlayerWeapon(playerid, 34, 15);
GivePlayerWeapon(playerid, 32, 200);
GivePlayerWeapon(playerid, 31, 100);
GivePlayerWeapon(playerid, 8, 1);
GivePlayerWeapon(playerid, 36, 10);
SetPlayerTeam(playerid, 1);
}
return 1;
}

but weapon has no damage,,,

i cant shoot other players, they just like using godmode, but not,,

all weapon couldnt kill player,,, it happened with all player in my server

pls help


Re: help me weapon bugged - Ash. - 26.06.2011

You can't attack and damage players that are on the same team. Alternate the teams, don't keep them the same. (SetPlayerTeam(...))


Re: help me weapon bugged - handerson - 26.06.2011

Quote:
Originally Posted by funky1234
Посмотреть сообщение
You can't attack and damage players that are on the same team. Alternate the teams, don't keep them the same. (SetPlayerTeam(...))
OMG,,, hahaha

my bad,,,

thanx for info

thanx


Re: help me weapon bugged - handerson - 26.06.2011