Wrong Commands
#7

i am using zcmd

and here is one from commands
PHP код:
command(meplayeridparams[]) {
    new
        
string[128]; // Updated this as I forgot about the whole params usage at the time of originally creating this.... but seeing as how noobs constantly rip this command I might as well give them some good code to rip from! (yes I'm talking about you, RealCop228 and all the others)
    
if(isnull(params)) {
        return 
SendClientMessage(playeridWHITE"SYNTAX: /me [action]");
    }
    else {
        if(
Player[playerid][PrisonID] == 1) {
            
SendClientMessage(playeridWHITE"You're unable to do this right now!");
        }
        else {
            
format(stringsizeof(string), "* %s %s"GetName(playerid), params);
            
NearByMessage(playeridNICESKYstring);
            
            
Player[playerid][MeActions]++;
            switch(
Player[playerid][MeActions]) {
                case 
100: {
                    
SendClientMessage(playeridWHITE"You have unlocked a new achievement!");
                    
SendClientMessage(playeridGREY"You have executed 100 /me actions.");
                    
Player[playerid][AchievementRank]++;
                }
                case 
200: {
                    
SendClientMessage(playeridWHITE"You have unlocked a new achievement!");
                    
SendClientMessage(playeridGREY"You have executed 200 /me actions.");
                    
Player[playerid][AchievementRank]++;
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Wrong Commands - by nezo2001 - 05.12.2014, 09:20
Re: Wrong Commands - by JaKe Elite - 05.12.2014, 09:22
Re: Wrong Commands - by nezo2001 - 05.12.2014, 09:38
Re: Wrong Commands - by Bingo - 05.12.2014, 09:41
Re: Wrong Commands - by OsteeN - 05.12.2014, 09:43
Re: Wrong Commands - by Kaperstone - 05.12.2014, 09:50
Re: Wrong Commands - by nezo2001 - 05.12.2014, 09:56

Forum Jump:


Users browsing this thread: 2 Guest(s)