How can i create a command with three space???
#4

PHP код:
COMMAND:gang(playeridparams[])
{
    new 
i[7];
     if (
sscanf(params"s[7]"i)) return SendClientMessage(playeridCOLOR_GREEN"[GANG]:{FFFFFF} /gang create [GANG NAME]");
     if (!
strcmp(i"create"true6))
    {
        if(
sscanf(params"s[128]"rest)) return SendClientMessage(playeridCOLOR_GREEN"[GANG]:{FFFFFF} /gang create [GANG NAME]");
        if(
gang[playerid][gid] != -1) return SendClientMessage(playerid,COLOR_GREEN"[GANG]:{FFFFFF}Leave your gang with /gangleave before creating a new one!");
        if(
IsgangTaken(rest)) return SendClientMessage(playeridCOLOR_GREEN"[GANG]:{FFFFFF}gang name is already in use!");
        
Creategang(restplayerid);
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)