SA-MP Forums Archive
SetPlayerTeam Problem - 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: SetPlayerTeam Problem (/showthread.php?tid=91766)



SetPlayerTeam Problem - Gijs - 16.08.2009

hey all

if i use this code (example)
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerTeam(playerid,4);
    return 1;
}
and then i go ingame and type: "/tpm hello"
then it says me i'm not in a team ?

Gijs


Re: SetPlayerTeam Problem - Google63 - 16.08.2009

GetPlayerTeam is bugged and i guess that you use that function in your command; right?


Re: SetPlayerTeam Problem - Gijs - 16.08.2009

Quote:
Originally Posted by JoeBullet
GetPlayerTeam is bugged and i guess that you use that function in your command; right?
/tpm is the same as /pm it is created by samp... ?


Re: SetPlayerTeam Problem - Correlli - 16.08.2009

Quote:
Originally Posted by Gijs
/tpm is the same as /pm it is created by samp... ?
It's sa-mp's command, yes.


Re: SetPlayerTeam Problem - Gijs - 16.08.2009

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Gijs
/tpm is the same as /pm it is created by samp... ?
It's sa-mp's command, yes.
yeah i know that but i told it to JoeBullet
But can anybody help me with my problem ?

Gijs


Re: SetPlayerTeam Problem - Dark_Kostas - 16.08.2009

I think SetPlayerTeam is not working. You can use SetSpawnInfo instead. On my script it was working.


Re: SetPlayerTeam Problem - Jefff - 16.08.2009

Or use AddPlayerClassEx and works for 100%


Re: SetPlayerTeam Problem - Gijs - 16.08.2009

that doesn't matter i wanna know why my code doesn't work :P

Gijs


Re: SetPlayerTeam Problem - Jefff - 16.08.2009

SetPlayerTeam is only for anti team kill i think.