04.12.2010, 11:22
(
Последний раз редактировалось fangoth1; 04.12.2010 в 12:02.
)
this is a script for my DM server having trouble Checking if the player is already on a team
pawn Код:
public OnPlayerSpawn(playerid)
{
new money = GetPlayerMoney(playerid);
ResetPlayerWeapons(playerid);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, money);
SetPlayerPos(playerid, 1283.73937988,64.11292267,1866.44262695);
SetPlayerTeam(playerid, 3);
SetPlayerColor(playerid, COLOR_WHITE);
new skinid = GetPlayerSkin(playerid);
new teamid = GetPlayerTeam(playerid);
new team1 = SetSpawnInfo(playerid, 1, skinid, 1351.2615966797, 348.85372924805, 19.296350479126, 0, 22, 150, 0, 0, 0, 0);
new team2 = SetSpawnInfo(playerid, 2, skinid, 83.93970489502, -149.35932922363, 2.2334928512573, 0, 22, 150, 0, 0, 0, 0);
new money = GetPlayerMoney(playerid);
{
if teamid = team1
SetSpawnInfo(playerid, 1, skinid, 1351.2615966797, 348.85372924805, 19.296350479126, 0, 22, 150, 0, 0, 0, 0);
}
}
else
{
if teamid = team2
SetSpawnInfo(playerid, 2, skinid, 83.93970489502, -149.35932922363, 2.2334928512573, 0, 22, 150, 0, 0, 0, 0);
}
}
else
{
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "CHOOSE YOUR TEAM", "Red Team[The Assualting Team]\nBlue Team[The Defensive Team]", "Chose", "Cancel");
return 1;
}