OnPlayerChooseClass?
#1

Hey is there something that will perform an action when the player selects a specific class?
(example: you choose cop, you get the blue nametag)
Reply
#2

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  switch(classid)
  {
     case 265:SetPlayerColor(playerid,COLOR_BLUE);
   }
return 1;
}
Reply
#3

Quote:
Originally Posted by mineralo
Посмотреть сообщение
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  switch(classid)
  {
     case 265:SetPlayerColor(playerid,COLOR_BLUE);
   }
return 1;
}
But how do i know which class he has selected
Reply
#4

classid
Reply
#5

Class id is the ID of the skin, like when you use:

AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);

Where 281 is thats the classid

so when it's like this
pawn Код:
switch(classid) // Switches between classes
  {
     case 265:SetPlayerColor(playerid,COLOR_BLUE); // Case 265 // 265 being the class id
   }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)