Dcmd To Zcmd -
youssefehab500 - 29.05.2014
public OnPlayerCommandText(playerid, cmdtext[])
{
//=============================Adv Allowed In Car chase
dcmd(pm, 2, cmdtext);
//==============================Basic
dcmd(cmds, 4, cmdtext);
if(GetPlayerVehicleID(playerid) != CarChase) {
dcmd(car, 3, cmdtext);
dcmd(admins, 6, cmdtext);
dcmd(vips, 4, cmdtext);
dcmd(teles, 5, cmdtext);
dcmd(savecar, 7, cmdtext);
dcmd(loadcar, 7, cmdtext);
dcmd(jp, 2, cmdtext);
//==============================Advenced
dcmd(cp, 2, cmdtext);
dcmd(goto, 4, cmdtext);
dcmd(carchase, 8, cmdtext);
//==============================Teles
dcmd(home, 4, cmdtext);
dcmd(grove, 5, cmdtext);
dcmd(lva, 3, cmdtext);
dcmd(lsa, 3, cmdtext);
dcmd(sfa, 3, cmdtext);
dcmd(aaj, 3, cmdtext);
dcmd(trampo, 6, cmdtext);
dcmd(tuner1, 6, cmdtext);
//==============================Admins
dcmd(admbase, 7, cmdtext);
dcmd(gateo, 5, cmdtext);
dcmd(gatec, 5, cmdtext);
dcmd(topo, 4, cmdtext);
dcmd(topc, 4, cmdtext);
dcmd(get, 3, cmdtext);
dcmd(ann, 3, cmdtext);
dcmd(disarm, 6, cmdtext);
dcmd(disarmall, 9, cmdtext);
dcmd(heal, 4, cmdtext);
dcmd(healall, 7, cmdtext);
dcmd(god, 3, cmdtext);
dcmd(minigun, 7, cmdtext);
} else{
return SendClientMessage(playerid, COLOR_RED, "SERVER: You can't use this command while in car chase.");
}
return SendClientMessage(playerid, COLOR_RED, "SERVER: Unknown command, use /cmds to see a list of all commands.");
}
hmmm i got a cmds using zcmd i dont use dcmd so how to convert these to be zcmd i did this to make while in carchase those cmds get disabled so nw i use zcmd so i need to convert them any help?
Re: Dcmd To Zcmd -
Lacamora - 29.05.2014
follow this methode
it's an exmaple
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(pm, 2, cmdtext);
return msg(playerid,msgtext);
}
dcmd:pm(playerid,.....){ //code return1; }
after
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
zcmd:pm(playerid,.....){ //code return1; }
Re: Dcmd To Zcmd -
youssefehab500 - 29.05.2014
Quote:
Originally Posted by Lacamora
follow this methode
it's an exmaple
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(pm, 2, cmdtext);
return msg(playerid,msgtext);
}
dcmd:pm(playerid,.....){ //code return1; }
after
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
zcmd:pm(playerid,.....){ //code return1; }
|
i dont want the actual cmd i got it and know it but i want to change wht i posted to be zcmd get it bro?
Re: Dcmd To Zcmd -
Dignity - 29.05.2014
Remove all the dcmd_name under OnPlayerCommandText(playerid, cmdtext[]) and change the commands from
dcmd_name(whatever follows) (or whatever syntax they use) to CMD:name(playerid, params[])
Re: Dcmd To Zcmd -
Abagail - 29.05.2014
You don't have to put anything under OnPlayerCommandText except return 0, or 1. Additionally, just change it from dcmd_command(bla bla bla) to CMD:command(playerid, params[]) or what-ever ZCMD syntax you like....
I.E:
CMD:command(playerid, params[])
or
COMMAND:command(playerid, params[])
Re: Dcmd To Zcmd -
youssefehab500 - 29.05.2014
guys i know that CMD:blablabla(playerid, params[]) i know that i mean on player text wheich is writted dcmd(cmds to which change it all answer same answer which i dont want xD
Re: Dcmd To Zcmd -
Dignity - 29.05.2014
CTRL+h
dcmd(
to
CMD:
Re: Dcmd To Zcmd -
youssefehab500 - 29.05.2014
Quote:
Originally Posted by Mionee
CTRL+h
dcmd(
to
CMD:
|
k gonna test
Re: Dcmd To Zcmd -
youssefehab500 - 29.05.2014
guys please i know that we type zcmd as CMD: or COMMAND: ex CMD:cmds(playerid, params[])
but all i need is u to look in the code i posted not the fuckin title -_- can you
Re: Dcmd To Zcmd -
Dignity - 29.05.2014
All -you- need to do is look at previous replies.
Quote:
Originally Posted by Abagail
You don't have to put anything under OnPlayerCommandText except return 0, or 1.
|
Quote:
Originally Posted by Mionee
Remove all the dcmd_name under OnPlayerCommandText(playerid, cmdtext[])
|