deinit playerclass or make not selectable?
#1

is it possible to make a playerclass (forexample 0) unselectable by the player or delete it while game mode is running? or is there any script if you select class 0 it auto selects class 1?

its not really neccesary(?dont know how to write XD) but it would be fine if it works so i can make more configs into one gamemode
Reply
#2

OnPlayerSpawn

then do if thier class is 0 then set thier skin to w/e
Reply
#3

Or you don't add the skin with AddPlayerClass
Reply
#4

how can i get the playerclass?

but if i dont add one skin with add playerclass there are 484499393 or sowhat skins!!
sorry im a noob^^
Reply
#5

Simply use:

Код:
public OnPlayerRequestClass(playerid, classid)
{
 if(classid == THESKINUDONTWANT)
 {
  SetPlayerSkin(playerid,THESKINHESHOULDHAVE);
 }
 return 1;
}
or use:

Код:
public OnPlayerSpawn(playerid)
{
 new deniedskin = GetPlayerSkin(playerid); 
 if(deniedskin == 123) //the number must be the skin u dont want
 {
  SetPlayerSkin(playerid,222); //The skin he should have
 }
 return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)