27.03.2009, 15:20
Hello,
i have a big problem with my second menu.
If a player respawn the server is crashing.
I thinks its the menu...
i have a big problem with my second menu.
If a player respawn the server is crashing.
I thinks its the menu...
Код:
public OnPlayerSpawn(playerid) { if(gTeam[playerid] == TEAM_PILOT) { ShowMenuForPlayer(Airport, playerid); TogglePlayerControllable(playerid, 0); } SendClientMessage(playerid, COLOR_GREEN, "Version: 0.3"); SendClientMessage(playerid, COLOR_GREEN, "Lies die /regeln!"); SendClientMessage(playerid, COLOR_GREEN, "Tippe /cmd fur die Commands ein!"); SendClientMessage(playerid, COLOR_GREEN, "Viel SpaЯ!"); return 1; }
Код:
public OnPlayerRequestClass(playerid, classid) { ////////////////////////////////////////SKINS/////////////////////////////////// switch (classid) { case 0: { GameTextForPlayer(playerid, "Pilot", 5000, 3); SetPlayerPos(playerid,-2690.67,2048.35,56.73); SetPlayerFacingAngle(playerid, 0.0); SetPlayerCameraPos(playerid,-2693.00,2052.62,55.73); SetPlayerCameraLookAt(playerid,-2690.67,2048.35,56.73); SetPlayerColor(playerid,COLOR_WHITE); gTeam[playerid] = TEAM_PILOT;