Skin REP++ - 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)
+--- Thread: Skin REP++ (
/showthread.php?tid=377225)
Skin REP++ -
Windrush - 13.09.2012
Hey i Want A Private Class
Example: he Have [NG] Tag name
And All [NG] tag names Can Be Selected
Sorry For Bad english
Please Rep+
Re: Skin REP++ -
ViruZz - 13.09.2012
Just create a class for it
Re: Skin REP++ -
Windrush - 13.09.2012
No I want Private
Re: Skin REP++ -
ViruZz - 13.09.2012
I guess your completely new to scripting.
You can make classes available for certain people by using groups.
Re: Skin REP++ -
Windrush - 13.09.2012
Please Help me
Re: Skin REP++ -
doreto - 13.09.2012
Its look that you will never understand were you have to ask for script but again i will remeber it
Script Request Thread #5
Re: Skin REP++ -
Windrush - 13.09.2012
Quote:
Originally Posted by ViruZz
I guess your completely new to scripting.
You can make classes available for certain people by using groups.
|
How To Create Groups ?
Re: Skin REP++ -
Windrush - 13.09.2012
HELP!!
Re: Skin REP++ -
mamorunl - 13.09.2012
If your class is the first class:
if(classid == 0 && substr(playername, 0, 4) != "[NG]") {
return 0;
}
In OnPlayerRquestSpawn. returning 0 will cause the player not to spawn. Code is not copy-paste friendly it just gives you a hint.
Re: Skin REP++ -
xMCx - 13.09.2012
PHP код:
#include <a_samp>
#define NG 0
new gTeam[MAX_PLAYERS];
forward SetPlayerTeamFromClass(playerid, classid);
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
if(classid == 0)
{
gTeam[playerid] = NG;
GameTextForPlayer(playerid,"~w~[NG]",3000,5); // This will show up an Text , when you select your class
SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
SetPlayerFacingAngle(playerid,122.4500);
SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
}