AddPlayerClass
#1

Hey guys need help i was trying to do if an player select skin 102 (Ballas one) that it display gametext "Ballas" but it dont work on Game mode init;
pawn Код:
AddPlayerClass(102, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0) || GameTextForPlayer(MAX_PLAYERS, "BALLAS", 3000, 3);
but it gives no errors but it not displays it on skin selection.
Reply
#2

Quote:
Originally Posted by MatriXgaMer
Посмотреть сообщение
Hey guys need help i was trying to do if an player select skin 102 (Ballas one) that it display gametext "Ballas" but it dont work on Game mode init;
pawn Код:
AddPlayerClass(102, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0) || GameTextForPlayer(MAX_PLAYERS, "BALLAS", 3000, 3);
but it gives no errors but it not displays it on skin selection.
You initalize the skins with AddPlayerClass or AddPlayerClassEx for the ClassSelection under OnGameModeInit.
But if you want to display this message when he choose the skin then you have to use the callback.

pawn Код:
public OnPlayerRequestClass(playerid,classid)
this callback is called when you change the class(skin) in the classselection.


https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)