help me weapon bugged
#1

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
Reply
#2

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

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
Reply
#4

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)