22.11.2009, 05:13
Well i decided write tutorial after i fixed same problem in my mode.
First we need fix OnPlayerDeath.
1. Open your GM mode.
2. Now we need forward new public - forward CheckDeath(playerid);
3. Now we need make public CheckDeath. Copy and paste.
Код:
public CheckDeath(playerid) { if(IsPlayerNPC(playerid))//If player is NPC then return it. { return 0; } TogglePlayerSpectating(playerid, 1); TogglePlayerSpectating(playerid, 0); SpawnPlayer(playerid); return 1; }
5. And paste it in this public SetTimerEx("CheckDeath", 3500, false, "i", playerid);
Done with it. Now if player is death, it show camera death (3.5 seconds) and respawn player wihout skin chooser.
Now we need make it when player in login on.
1. Find public OnPlayerConnect(playerid)
2. Paste it in this public TogglePlayerSpectating(playerid, 1);
3. Now find public OnPlayerLogin(playerid,password[])
4. Paste it in this public TogglePlayerSpectating(playerid, 0);
Done. Now when player is connected it won't show skin chooser.
Added: If you want disable skin chooser after player pressed on F4:
1. Find public OnPlayerRequestClass(playerid, classid)
2. Remove all content in this public and just give return 1;
Done. Now if player pressed on F4 it show Skin chooser but player can't choose any skin.
I hope it has helped you. Good Luck.