SetPlayerTeam
#1

Hi!


How does SetPlayerTeam works?.. I have no idea how to get in same teame etc..

No inf in wiki...
Reply
#2

yes the wiki has the info

https://sampwiki.blast.hk/wiki/SetPlayerTeam

this is the example from the wiki below
pawn Код:
public OnPlayerSpawn(playerid)
{
    // Set a player's team to 4 when they spawn
    SetPlayerTeam(playerid, 4);
    return 1;
}
Reply
#3

Use GetPlayerTeam to get a players team id.
Reply
#4

Okay thanks! .
Reply
#5

works, like gTeam variable.. But its easier, I think.
Reply
#6

Now I have GetPlayerTeam and SetPlayerTeam does I need any more?, To set skins etc?..
Reply
#7

Depends on what you wanna do; tell me and I'mma script it.
Reply
#8

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Depends on what you wanna do; tell me and I'mma script it.
I maybe can script it.. I'm making SetPlayerTeam and I don't know how to get the skins this way..
Reply
#9

Use "GetPlayerSkin" and "SetPlayerSkin"!
Reply
#10

Nice thanks alot! , I can give rep for all help .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)