09.08.2011, 21:11
Hello,
I have a problem with function TogglePlayerControllable.
I have de follow code:
But player not be freeze, he can moves.
Why toggle donґt work?
Regards
I have a problem with function TogglePlayerControllable.
I have de follow code:
Код:
public SetPlayerSpawn(playerid) { ..... if(PlayerInfo[playerid][pTut] == 0) { gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; SafeSetPlayerInterior(playerid, 3); SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875); SetPlayerFacingAngle(playerid, 280); TogglePlayerControllable(playerid, 0); RegistrationStep[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTRED, "Hello there! Welcome to the Los Santo Immigration Center, I will be asking you a few questions."); SendClientMessage(playerid, COLOR_LIGHTRED, "First Question: Are you a Male or Female?"); SendClientMessage(playerid, COLOR_LIGHTRED, "TIP: Please type in what you are! Don't worry, no one will see it!"); PlayerInfo[playerid][pRegularCount] = 144000; SafeGivePlayerMoney(playerid,500); return 1; } ..... }
Why toggle donґt work?
Regards