05.11.2009, 22:57
pawn Код:
//-------------------------[Teleport Teams]---------------------------------------------
if (strcmp(cmd, "/teamteleport", true) == 0)
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && teamid[i] == 1)//Replace teamid[i] with your team variable and teamid with the team ID you wish to teleport
{
SetPlayerPos(i,1.1,1.1,1.1);//Change to the co-ordinates you want to teleport them to
}
}
return 1;
}