Class Selection For Player
#1

Hi, I work on Cops And Robs mode now,
So I want to do,
That if this is a new player, So he wiil be with the full class selection,
And if it a player that he isn't new so he will can chose only he's player,

I mean like,
I new in the server and I choose to be a Medic

So I log out and log in, and now I didn't see the cop as the first skin, I see my skin,

I hope that I explain my self....

Thanks for who answer to me
Reply
#2

What do you mean 'I didn't see the cop as first skin'?
Reply
#3

That the first skin was of my medic,
And not as a other skin
Reply
#4

PHP код:
public OnPlayerConnect(playerid)
{
    
ClassSkin[playerid]=Class_Add(dini_Int(PlayerFile(playerid),"skin"),1958.3783,1343.1572,15.3746,270.1425);
    
Class_SetPlayer(ClassSkin[playerid], playeridfalse);
    return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
    
Class_Delete(ClassSkin[playerid]);
    return 
1;

And when I login I have the medic skin, but when some one else login and he is a cop he have the medic skin...

I use your include y_classes
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)