Class Selection For Player - 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: Class Selection For Player (
/showthread.php?tid=228411)
Class Selection For Player -
eran1x1 - 19.02.2011
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
Re: Class Selection For Player -
maramizo - 19.02.2011
What do you mean 'I didn't see the cop as first skin'?
Re: Class Selection For Player -
eran1x1 - 19.02.2011
That the first skin was of my medic,
And not as a other skin
Re: Class Selection For Player -
eran1x1 - 19.02.2011
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], playerid, false);
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