Author Topic: How to display playerclass in skinsel mode  (Read 3220 times)

0 Members and 1 Guest are viewing this topic.

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
How to display playerclass in skinsel mode
« on: December 29, 2012, 11:37:21 am »
Hey! Today I'll learn you how to make a small script which will display your class in skin selection mode.
you got
public OnPlayerRequestClass(playerid, classid)
[pawn]{
   new team = GetPlayerTeam(playerid);//we made new "team" to get the team which is selected atm by player in Skin Selection mode
   new string[256];//we made new string
   format(string, sizeof(string), "~h~%d team", team);//we set it's format
   GameTextForPlayer(playerid, string);//we sent game text for player
   return 1;
}[/pawn]

It will display game text, for example: 1 TEAM/2 TEAM
« Last Edit: December 29, 2012, 11:41:51 am by NeskWriter »


-Funniest quotes-

Quote from: asad3man
i cant able to understand