Class Names
#1

look some thing like this:
What I want is For Skin Id 105 106 107 to Be Called "Grove Street Gang"
for id's 102 103 104 to be Called "Ballas Gang"
and keeps going How i do that Can Some 1 Give me Only for Grove Street Gang And I will Do the Rest Thank you If you Helped and All Will Get Rep
Reply
#2

use onplayerRequestClass for this and Gametextforplayer
Reply
#3

Here you have an example:
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(19,..........................); //returns class id 0.
    AddPlayerClass(20,..........................); //returns class id 1.
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        SendClientMessage(playerid,-1,"This skin is number 19. =)"); //Also you can use GameTextForPlayer, etc.
    }
    return 1;
}
Best regards!
Reply
#4

But whats the Line?
Reply
#5

oh thanx but You see The PIcture That I Attached to my post?
Thats How I want it so for EX the player conected and he is at the <--- ---> (Spawn) and the Skin # is 0 I want it to Say CJ Just like in the picture
Reply
#6

Look:
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0,0.0,0.0,0.0,0.0,0,0,0,0,0,0); //class id = 0
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        GameTextForPlayer(playerid,"~n~~n~~p~Carl Jhonson",1000,5);
    }
    return 1;
}
Good luck!
Reply
#7

Hey But You Have ID 1 and Also were Should I put it HEre is what i Have
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
return 1;
}
Reply
#8

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
         case 0: GameTextForPlayer(playerid,"~n~~n~~b~~h~This is skin number 1",1000,5);
         //case 1: (another id, in this case 1, just example)
    }
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}
Reply
#9

Thanks But What if I Want to Put more Than 1 skin So I want Skin 0 and 1 i do this
--------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid){ switch(classid) {
case 0: GameTextForPlayer (playerid,"~n~~n~~b~~h~CJ",1000,5);
case 1: GameTextForPlayer (playerid,"~n~~n~~b~~h~Truth",1000,5);
And Keeps Going and going?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)