SA-MP Forums Archive
help to make cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help to make cmd (/showthread.php?tid=583412)



help to make cmd - s3ek - 28.07.2015

removed no help


Re: help to make cmd - XBrianX - 28.07.2015

Use my code.

PHP код:
CMD:fixvehall(playeridparams[])
{
  if(
PlayerInfo[playerid][Level] >= 2) { 
        new 
giveplayerid
        {           
        for(new 
0MAX_VEHICLESv++) {
            
RepairVehicle(v);
        }
        
SendClientMessage(playeridCOLOR_GREY"All vehicles fixed!");
    }
    return 
1;




Re: help to make cmd - s3ek - 28.07.2015

Quote:
Originally Posted by XBrianX
Посмотреть сообщение
Use my code.

PHP код:
CMD:fixvehall(playeridparams[])
{
  if(
PlayerInfo[playerid][Level] >= 2) { 
        new 
giveplayerid
        {           
        for(new 
0MAX_VEHICLESv++) {
            
RepairVehicle(v);
        }
        
SendClientMessage(playeridCOLOR_GREY"All vehicles fixed!");
    }
    return 
1;

you did not get what I mean , pleas see my cmd first


AW: help to make cmd - Mencent - 28.07.2015

Hello!

Try this:
PHP код:
CMD:afixall(playerid,params[])
{
    if(
PlayerInfo[playerid][Level] >= 2)
    {
        for(new 
i;i<MAX_PLAYERS;i++)
        {
            if(!
IsPlayerConnected(i) || IsPlayerNPC(i))continue;
            
afixcars(i);
            
afixhs(i);
            
afixbizs(i);
        }
        
SendClientMessage(playerid,COLOR_BRIGHTRED,"Cars, House, and Business successfully repaired!");
    }
    else 
SendClientMessage(playerid,red,"ERROR: You need to be level 2 to use this command!");
    return 
1;




Re: AW: help to make cmd - s3ek - 28.07.2015

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Try this:
PHP код:
CMD:afixall(playerid,params[])
{
    if(
PlayerInfo[playerid][Level] >= 2)
    {
        for(new 
i;i<MAX_PLAYERS;i++)
        {
            if(!
IsPlayerConnected(i) || IsPlayerNPC(i))continue;
            
afixcars(i);
            
afixhs(i);
            
afixbizs(i);
        }
        
SendClientMessage(playerid,COLOR_BRIGHTRED,"Cars, House, and Business successfully repaired!");
    }
    else 
SendClientMessage(playerid,red,"ERROR: You need to be level 2 to use this command!");
    return 
1;

cmd say in server (unknow command) !! pleas help


Re: help to make cmd - s3ek - 28.07.2015

help


Respuesta: help to make cmd - elpana27 - 09.09.2016

i how define this cmd cmd:afixall?
afixcars(i);
afixhs(i);
afixbizs(i);


Re: Respuesta: help to make cmd - SickAttack - 09.09.2016

Quote:
Originally Posted by elpana27
Посмотреть сообщение
i how define this cmd cmd:afixall?
Get the include ZCMD: https://sampforum.blast.hk/showthread.php?tid=91354

Quote:
Originally Posted by elpana27
Посмотреть сообщение
afixcars(i);
afixhs(i);
afixbizs(i);
You have to create those functions.


Re: help to make cmd - elpana27 - 09.09.2016

i am noob :P :/


Re: help to make cmd - Ultraz - 10.09.2016

Use in the bottom of your script
Код:
#include <zcmd>
Then go to ZCMD Include Download

And put it in pawno/include Folder , then recompile.