How to make a command to 2 things.
#2

Код:
COMMAND:viptag(playerid, params[])
{
    if(Pinfo[playerid][Vip_Level])
    {
     	if(viptag[playerid] == 1)
     	{
       		new pname[24];
 		new string[100];
   		GetPlayerName(playerid,pname,24);
     		format(string,sizeof(string), "[PHD]%s",pname);
      		SetPlayerName(playerid,string);
      		viptag[playerid] = 0;
      	}
     	 else if(viptag[playerid] == 0)
         {
             // Do your stuff here
         }
         else
      	{
       		SendClientMessage(playerid,COLOR_WHITE,"You have already used this command or you need to be a donater.");
      	}
   }
   return 1;
}
Is that what you're looking for, perhaps?
Reply


Messages In This Thread
How to make a command to 2 things. - by Haydz - 01.12.2010, 02:42
Re: How to make a command to 2 things. - by Haegon - 01.12.2010, 03:06
Re: How to make a command to 2 things. - by Haydz - 01.12.2010, 03:16
Re: How to make a command to 2 things. - by Haegon - 01.12.2010, 03:36

Forum Jump:


Users browsing this thread: 1 Guest(s)