SA-MP Forums Archive
Have problem about F4? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Have problem about F4? (/showthread.php?tid=93827)



Have problem about F4? - Crony - 27.08.2009

I wanna if player connected first time disable class selection but other times to enable class selection..
How can I do it?


Re: Have problem about F4? - HuRRiCaNe - 27.08.2009

so u want to make that the player can only choose 1 skin and he cannot change it?
if so...
you can do this (is very simple )
(this on the main of the gamemode, after #define...)
pawn Код:
new PlayerFirstSpawn[MAX_PLAYERS];
under OnPlayerSpawn...
pawn Код:
PlayerFirstSpawn[playerid] = 1 ;
where u want ( if you got this just replace.)
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
if(PlayerFirstSpawn[playerid]!= 0)
{ SpawnPlayer(playerid);
}

notice here if it worked


Re: Have problem about F4? - Crony - 27.08.2009

I added but now, I don't pressed F4 but When I dead, I saw select class screen :S


Re: Have problem about F4? - Eazy_Efolife - 27.08.2009

Quote:
Originally Posted by WickedDogg
I added but now, I don't pressed F4 but When I dead, I saw select class screen :S
Say that again ?


Re: Have problem about F4? - Crony - 27.08.2009

I added but now When I dead I see the class selection screen.


Re: Have problem about F4? - Eazy_Efolife - 27.08.2009

Quote:
Originally Posted by WickedDogg
I added but now When I dead I see the class selection screen.
When you didn't press F4?


Re: Have problem about F4? - Crony - 27.08.2009

Quote:
Originally Posted by Compton's Eazy E
Quote:
Originally Posted by WickedDogg
I added but now When I dead I see the class selection screen.
When you didn't press F4?
Yes