Problem: Only join team with level 2 or higher
#7

Do it under OnPlayerRequestSpawn callback
PHP код:
public OnPlayerRequestSpawn(playerid)
{
    if(
GetPlayerSkin(playerid)==//Donator's skin id)
    
{
         if(
PlayerInfo[playerid][Level]<2)
         {
              
SendClientMessage(playerid, -1"You must be level 2 or above to select this class.");
              return 
0;
          }
     }
     return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)