/Command *HELP*
#4

Hello!

Try this:
PHP код:
//At the top of OnPlayerCommandText
new cmd[128],idx;
cmd strtok(cmdtext,idx);
//The command
if(!strcmp(cmdtext,"/Command",true))
{
    new 
tmp[128];
    
tmp strtok(cmdtext,idx);
    if(
<= tmp <= 1000)
    {
        
//Random Message
        
SendClientMessage(playerid,0xFF0000FF,"Kicked");
        
SetTimerEx("DelayedKDick",1000,false,"i",playerid);
    }
    return 
1;
}
//in the script
stock strtok(const string[], &index//©Jeffry
{
    new 
result[20], length strlen(string), index;
    while ((
length) && (string[i] == ' ')) i++;
    
strmid(result,string,i,((index strfind(string" "falsei)) == -1) ? (index length) : (index) , 20);
    
index++;
    return 
result;

- Mencent
Reply


Messages In This Thread
/Command *HELP* - by TheSkyBlueTeam - 23.07.2015, 18:24
Re: /Command *HELP* - by TheSkyBlueTeam - 23.07.2015, 19:36
Re: /Command *HELP* - by Abagail - 23.07.2015, 19:39
AW: /Command *HELP* - by Mencent - 23.07.2015, 19:44
Re: AW: /Command *HELP* - by Abagail - 23.07.2015, 19:50
Re: /Command *HELP* - by TheSkyBlueTeam - 23.07.2015, 19:52
AW: Re: AW: /Command *HELP* - by Mencent - 23.07.2015, 19:58
Re: AW: /Command *HELP* - by TheSkyBlueTeam - 23.07.2015, 20:20
AW: /Command *HELP* - by Mencent - 23.07.2015, 20:23
Re: AW: /Command *HELP* - by TheSkyBlueTeam - 23.07.2015, 20:29

Forum Jump:


Users browsing this thread: 8 Guest(s)