15.08.2011, 18:19
Buenas, quisiera saber como poner que cuando el jugador empieza a registrarse donde dice de poner la edad, sexo , etc el jugador no se pueda poner. Probй poniendo el TogglePlayerControllable(i, 0); pero me tiraba error de undefined symbol ''i''. Os dejo el codigo:
Код:
public SetPlayerSpawn(playerid) { if(IsPlayerConnected(playerid)) { new fight = PlayerInfo[playerid][pFStyle]; SetPlayerFightingStyle (playerid, fight); SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); if(PlayerInfo[playerid][pTut] == 0) { SetTimerEx("FreezePlayer", 10000, false, "i", playerid); gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; gDep[playerid] = 0; gRad[playerid] = 0; SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,-2807.5427,1180.0665,20.8672); SetPlayerCameraPos(playerid,-2809.000,1188.000,21.000); SetPlayerCameraLookAt(playerid,-2808.000,1183.000,21.000); SetPlayerFacingAngle(playerid,360.0); RegistrationStep[playerid] = 1; PlayerInfo[playerid][pOrigin] = 1; ClearChatbox(playerid, 5); Freezed[playerid] = 1; SetPlayerSkin(playerid, 26); PlayerInfo[playerid][pChar] = 26; SendClientMessage(playerid, COLOR_WHITE, "Para poder jugar, debes configurar tu personaje previamente."); SendClientMessage(playerid, COLOR_WHITE, "Para Cambiar De Configuracion Pretona la tecla C."); SendClientMessage(playerid, COLOR_WHITE, "Cuando acabes de seleccionar tu origen pulsa la tecla C"); GameTextForPlayer(playerid, "~w~Usa ~g~SPACE ~w~Para Elegir Tu Sexo~n~~n~~n~~w~y Usa ~g~C ~w~Para Continuar", 3000, 3); ApplyAnimation(playerid,"STRIP","PUN_HOLLER",4.1,7,5,1,1,1); TextDrawShowForPlayer(playerid, reg0[playerid]); TextDrawShowForPlayer(playerid, reg1[playerid]); TextDrawShowForPlayer(playerid, reg2[playerid]); RegText[playerid] = 1; PlayerInfo[playerid][pUpdated] = 1; return 1; }