[help]i need help with teams[help] - 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]i need help with teams[help] (
/showthread.php?tid=93511)
[help]i need help with teams[help] -
krisko - 25.08.2009
hey all can someone tell me how can i se it like this if player from team 0 get killed by some player from team 1 he get transfered to team 1
Re: [help]i need help with teams[help] -
saiberfun - 25.08.2009
Quote:
Originally Posted by krisko
hey all can someone tell me how can i se it like this if player from team 0 get killed by some player from team 1 he get transfered to team 1
|
pawn Код:
OnPlayerDeath(killerid,playerid,reason)
{
new teamkiller;
teamkiller = GetPlayerTeam(killerid);
SetPlayerTeam(playerid,teamkiller);
return 1;
}

easy
u could of do it more advanced but this is the easiest way i guess