/makeleader command
#1

That's my unfinished command.
PHP код:
CMD:dajlidera(playeridparams[])
{
    new 
podaneid;
    new 
numer;
    new 
tmp[256];
    
numer strval(tmp);
    if(
sscanf(params"u"podaneid)) return SendClientMessage(playeridcolorRed"Use /dajlidera");
    if(
podaneid == INVALID_PLAYER_ID) return SendClientMessage(playeridcolorRed"Wrong player id.");
    
format(file128"/SRP/%s.ini"GetName(podaneid));
    
dini_IntSet(file"Frakcja"numer);
    return 
1;

I want to set player i select ((podaneid)) a faction of my choice. ((/dajlidera [id] [faction id]))
I'm using ZCMD and i don't know how to do it without cmdtext and other things.
Can someone just fix this code?
Reply


Messages In This Thread
/makeleader command - by sekol - 01.10.2010, 11:24
Re: /makeleader command - by [XST]O_x - 01.10.2010, 12:17
Re: /makeleader command - by sekol - 01.10.2010, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)