help to make cmd
#1

removed no help
Reply
#2

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;

Reply
#3

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
Reply
#4

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;

Reply
#5

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
Reply
#6

help
Reply
#7

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

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.
Reply
#9

i am noob :P :/
Reply
#10

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)