18.06.2012, 14:55
I made 4 Teams..
USA
RUSSIA
UK
China
and for these i want different spawn points.. like if Player choose USA he should spawn in USA base and i made that
The problem is that even if i select China Uk or Russia it spawns me at USA base... any help would be Apriciated.
USA
RUSSIA
UK
China
and for these i want different spawn points.. like if Player choose USA he should spawn in USA base and i made that
pawn Код:
if(GetPlayerTeam(playerid == TEAM_USA))
{
SetPlayerPos(playerid, -2026.0000,1073.0000,55.5703);
}
if(GetPlayerTeam(playerid == TEAM_RUSSIA))
{
SetPlayerPos(playerid, -1721.0000,853.0000,24.7344);
}
if(GetPlayerTeam(playerid == TEAM_UK))
{
SetPlayerPos(playerid, -1554.7438,928.7686,7.0391);
}
if(GetPlayerTeam(playerid == TEAM_CHINA))
{
SetPlayerPos(playerid, -1347.7363,504.7618,18.2344);
}