SA-MP Forums Archive
killerid - 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)
+--- Thread: killerid (/showthread.php?tid=392717)



killerid - Sam5513 - 15.11.2012

Hey guys.
Quick question. I am doing a mod where one person flys a hunter and hen he gets shot down by other user with rpg, the other user becomes the pilot.
Код:
if(team[playerid]==1)
{
                  team[killerid]=1;
		  SetPlayerPos(killerid,348.4973,1953.1989,16.6141);
		  SendClientMessage(killerid,COLOR_YELLOW,"Congratulations. You killed the pilot. You are a pilot now. Kill as many troops you can.");
		  ResetPlayerWeapons(killerid);
		  SetPlayerSkin(killerid,61);
		  SetPlayerSkin(playerid,287);
		  team[playerid]=0;
}
team id 0 is army and team id 1 is pilot.
The problem is that sa-mp doesnt recognize killerid if the person dies in hunter. its like if samp thought it was a crash or something. Any ideas on fixing please? Any help attempt appreciated.
Thank you


Re: killerid - Sam5513 - 15.11.2012

I know its not nearly 24 hours so I could bump but its kind of urgent and I cant find it anywhere on the forums. Please give it a try guys, im desperate. Sure, you will get youre rep.