17.01.2013, 16:57
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)
(example: you choose cop, you get the blue nametag)
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 265:SetPlayerColor(playerid,COLOR_BLUE);
}
return 1;
}
switch(classid) // Switches between classes
{
case 265:SetPlayerColor(playerid,COLOR_BLUE); // Case 265 // 265 being the class id
}