18.06.2016, 19:48
it is possible to make the classid in OnPlayerSpawn ?
if it is not possible how can i do for that :
it is making a dialog when he choose the first AddPlayerClass but me i don't want that
if it is possible how to make that ?
if it is not possible how can i do for that :
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1551.7479,-1675.5494,15.9859);
SetPlayerCameraPos(playerid, 1548.7133,-1675.3954,14.6442);
SetPlayerCameraLookAt(playerid, 1551.7479,-1675.5494,15.9859);
SetPlayerFacingAngle(playerid, 90);
if(classid == 0)
{
ShowPlayerDialog(playerid, DIALOG_CLASS_POLICIER, DIALOG_STYLE_INPUT, "Toutes les classes policiers", "Policier\nSwat\nFBI\nBuldozer\nCloacker\n", "Selectionner", "Fermйe");
return 1;
}
return 1;
}
if it is possible how to make that ?