Class Showing Stop From Spawning
#5

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
     if(
classid == [your class idyou will get it by counting1st added class is id 1second 2 etc.])
     {
          
GameTextForPlayer(playerid,"This class isn't finished yet!",3000,6);
          return 
0;
     }
     return 
1;

EDIT: @Pinguin
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    if(
classid == 5) return SendClientMessage(playerid0xFFFFFF"That skin/class is not allowed!");
    return 
1;

Will fail. You don't have code to prevent player from spawning and you added teamid instead of classid.
Reply


Messages In This Thread
Class Showing Stop From Spawning - by [LHT]Bally - 11.09.2011, 12:28
Re: Class Showing Stop From Spawning - by Pinguinn - 11.09.2011, 12:30
Re: Class Showing Stop From Spawning - by [LHT]Bally - 11.09.2011, 12:32
Re: Class Showing Stop From Spawning - by Pinguinn - 11.09.2011, 12:35
Re: Class Showing Stop From Spawning - by [MG]Dimi - 11.09.2011, 12:36
Re: Class Showing Stop From Spawning - by [LHT]Bally - 11.09.2011, 12:37
Re: Class Showing Stop From Spawning - by Pinguinn - 11.09.2011, 12:37
Re: Class Showing Stop From Spawning - by [LHT]Bally - 11.09.2011, 12:40
Re: Class Showing Stop From Spawning - by [LHT]Bally - 11.09.2011, 12:43
Re: Class Showing Stop From Spawning - by [MG]Dimi - 11.09.2011, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)