Teams Quick Question
#1

I have 2 teams team 1 and team 2.

But with a command i want to set there team to default so anti team deathmatch would be removed.

I tryed 0 it doesnt work what is default that they can damage each other.
Reply
#2

if you are using SetPlayerTeam, do this:
pawn Код:
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) SetPlayerTeam(playerid, playerid);
Here you can read more about SetPlayerTeam:
https://sampwiki.blast.hk/wiki/SetPlayerTeam
Reply
#3

Will test that.
Reply
#4

C:\Users\Turhan\Desktop\Sa-MP!\filterscripts\AdminSystem.pwn(1137) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\Users\Turhan\Desktop\Sa-MP!\filterscripts\AdminSystem.pwn(1153) : warning 219: local variable "playerid" shadows a variable at a preceding level

ERROR!
Reply
#5

use something else in the loop then like:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
and also change the SetPlayerTeam then

pawn Код:
SetPlayerTeam(i, i);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)