SetPlayerTeam Problem
#1

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

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

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

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

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

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

Or use AddPlayerClassEx and works for 100%
Reply
#8

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

Gijs
Reply
#9

SetPlayerTeam is only for anti team kill i think.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)