Skin REP++
#1

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+
Reply
#2

Just create a class for it
Reply
#3

No I want Private
Reply
#4

I guess your completely new to scripting.

You can make classes available for certain people by using groups.
Reply
#5

Please Help me
Reply
#6

Its look that you will never understand were you have to ask for script but again i will remeber it


Script Request Thread #5
Reply
#7

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 ?
Reply
#8

HELP!!
Reply
#9

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.
Reply
#10

PHP код:
#include <a_samp>
#define NG 0
new gTeam[MAX_PLAYERS];
forward SetPlayerTeamFromClass(playeridclassid);
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerTeamFromClass(playeridclassid);
    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
    

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)