A little help..
#7

Quote:
Originally Posted by Kush
Посмотреть сообщение
You've done nothing but strip this out of a Godfather edit.



PHP код:
new faction[MAX_PLAYERS];
YCMD:makeleader(playeridparams[], help)
{
    
#pragma unused help
    
if(IsPlayerAdmin(playerid))
    {
         new 
idfnumber;
          if(
sscanf(params"ui"idfnumber)) return SendClientMessage(playerid, -1"USAGE: /makeleader [playerid] [faction]");
           if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1"Player is not connected!");
        
faction[id] = fnumber;
        new 
string[128];
        
format(stringsizeof(string), "You have been made leader of faction number %d."fnumber);
         
SendClientMessage(id, -1string);
    }
    else
    {
        
SendClientMessage(playerid, -1"You are not authorized to use that command!");
    }
    return 
1;

An example done in YCMD. Untested.
Actually i took this from my scratch server , i don't use a Godfather edit
Reply


Messages In This Thread
A little help.. - by RoleplayEditor - 16.08.2011, 12:41
Re: A little help.. - by -zriptarusk - 16.08.2011, 12:44
Re: A little help.. - by RoleplayEditor - 16.08.2011, 12:57
Re: A little help.. - by Darnell - 16.08.2011, 13:14
Re: A little help.. - by ElieJabbour - 16.08.2011, 14:16
Re: A little help.. - by Kush - 16.08.2011, 14:30
Re: A little help.. - by ElieJabbour - 16.08.2011, 14:38
Re: A little help.. - by Kush - 16.08.2011, 14:40
Re: A little help.. - by ElieJabbour - 16.08.2011, 14:42
Re: A little help.. - by Darnell - 16.08.2011, 14:51

Forum Jump:


Users browsing this thread: 3 Guest(s)