Hello mates I just found a random script that looked good and I saw that it has some stuff dcmd+strcmd and I was wondering if it can be converted its alot of it these are not the actual commands these are... I dont know but these arent cmds anyway guys have a look.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[128];
SpamStrings[playerid] +=2;
if(SpamStrings[playerid] >= MAX_SPAM)
{
format(string,sizeof(string),"Please do not spam in %s. Please wait before typing again.",sabbv);
SendClientMessage(playerid, COLOR_ERROR, string);
return 1;
}
//dcmd//
//Civilian commands//
dcmd(gcommands,9,cmdtext); //General Commands
dcmd(commands,8,cmdtext);
dcmd(rules,5,cmdtext);
dcmd(pc,2,cmdtext); // Player Colours
dcmd(transfer,8,cmdtext);
dcmd(death,5,cmdtext);
dcmd(911,3,cmdtext);
dcmd(payticket,9,cmdtext);
dcmd(engineon,8,cmdtext);
dcmd(engineoff,9,cmdtext);
dcmd(lightson,8,cmdtext);
dcmd(lightsoff,9,cmdtext);
dcmd(bootup,6,cmdtext);
dcmd(bootdown,8,cmdtext);
dcmd(bonnetup,8,cmdtext);
dcmd(bonnetdown,10,cmdtext);
dcmd(me,2,cmdtext);
dcmd(w,1,cmdtext);
dcmd(whisper,7,cmdtext);
dcmd(cw,2,cmdtext);
dcmd(carwhisper,10,cmdtext);
dcmd(pm,2,cmdtext);
dcmd(ircpm,5,cmdtext);
dcmd(report,6,cmdtext);
dcmd(medic,5,cmdtext);
dcmd(mechanic,8,cmdtext);
dcmd(drugdealer,10,cmdtext);
dcmd(weapondealer,12,cmdtext);
dcmd(taxi,4,cmdtext);
dcmd(bo,2,cmdtext);
dcmd(bizowners,9,cmdtext);
dcmd(smokeweed,9,cmdtext);
dcmd(injectheroin,12,cmdtext);
dcmd(placehit,8,cmdtext);
dcmd(untie,5,cmdtext);
dcmd(cutrope,7,cmdtext);
dcmd(robskill,8,cmdtext);
dcmd(robstore,8,cmdtext);
dcmd(inventory,9,cmdtext);
dcmd(credits,7,cmdtext);
dcmd(sausage,7,cmdtext);
dcmd(givecash,8,cmdtext);
dcmd(givegun,7,cmdtext);
dcmd(changepass,10,cmdtext);
dcmd(changename,10,cmdtext);
//Regular Player Commands//
dcmd(crb,3,cmdtext);
dcmd(rub,3,cmdtext);
dcmd(rrball,6,cmdtext);
dcmd(afk,3,cmdtext);
dcmd(back,4,cmdtext);
dcmd(rc,2,cmdtext);
//Terrorist Commands//
dcmd(blowcar,7,cmdtext);
dcmd(blowup,6,cmdtext);
dcmd(tlevel,6,cmdtext);
//Car Jacker Commands//
dcmd(sellcar,7,cmdtext);
//Thief Commands//
dcmd(rob,3,cmdtext);
//Kidnapper Commands//
dcmd(kidnap,6,cmdtext);
//Hitman Commands//
dcmd(hitlist,7,cmdtext);
//Weapon Dealer Commands//
dcmd(showweapons,11,cmdtext);
dcmd(sellweapon,10,cmdtext);
//Drug Dealer Commands//
dcmd(giveweed,8,cmdtext);
dcmd(giveheroin,10,cmdtext);
//Rapist commands//
dcmd(rape,4,cmdtext); //Also for non-rapeists.
//Range of Classes Commands//
dcmd(setprice,8,cmdtext);
//Medic Commands//
dcmd(heal,4,cmdtext);
dcmd(cure,4,cmdtext);
dcmd(healme,6,cmdtext);
dcmd(cureme,6,cmdtext);
//Mechanic Commands//
dcmd(repair,6,cmdtext);
dcmd(repairme,8,cmdtext);
//Police Commands//
dcmd(pu,2,cmdtext);
dcmd(ticket,6,cmdtext);
dcmd(suspect,7,cmdtext);
dcmd(search,6,cmdtext);
dcmd(m,1,cmdtext);
dcmd(arrest,6,cmdtext);
dcmd(cuff,4,cmdtext);
dcmd(uncuff,6,cmdtext);
dcmd(detain,6,cmdtext);
dcmd(dropoff,7,cmdtext);
//CIA Commands//
dcmd(stopsat,7,cmdtext);
dcmd(tackle,6,cmdtext);
//FBI Commands//
dcmd(liftup,6,cmdtext);
dcmd(liftdown,8,cmdtext);
//Administrator Commands//
if(AdminLevel[playerid] >= 1)
{
dcmd(adcmds,6,cmdtext);
dcmd(admute,6,cmdtext);
dcmd(adunmute,8,cmdtext);
dcmd(adwarn,6,cmdtext);
dcmd(admsg,5,cmdtext);
if(AdminLevel[playerid] >= 2)
{
dcmd(adfreeze,8,cmdtext);
dcmd(adunfreeze,10,cmdtext);
}
if(AdminLevel[playerid] >= 3)
{
dcmd(adjail,6,cmdtext);
dcmd(adan,4,cmdtext);
dcmd(adannounce,10,cmdtext);
dcmd(adkick,6,cmdtext);
}
if(AdminLevel[playerid] >= 4)
{
dcmd(adblow,6,cmdtext);
dcmd(adban,5,cmdtext);
dcmd(spectate,8,cmdtext);
dcmd(specoff,7,cmdtext);
dcmd(adkill,6,cmdtext);
dcmd(adgivecash,10,cmdtext);
dcmd(adgc,4,cmdtext);
}
if(AdminLevel[playerid] >= 5)
{
dcmd(adon,4,cmdtext);
dcmd(adoff,5,cmdtext);
dcmd(goto,4,cmdtext);
dcmd(bring,5,cmdtext);
dcmd(adreg,5,cmdtext);
dcmd(adunreg,7,cmdtext);
dcmd(adarmy,6,cmdtext);
dcmd(adunarmy,8,cmdtext);
dcmd(adcia,5,cmdtext);
dcmd(aduncia,7,cmdtext);
dcmd(adgiveweapon,12,cmdtext);
dcmd(adjetpack,9,cmdtext);
}
if(AdminLevel[playerid] == 1337)
{
dcmd(adsetlevel,10,cmdtext);
}
}
return SendClientMessage(playerid,COLOR_RED,"Wrong command. This command is not found. Type /commands for a list of commands.");
}
Yeah as you said those aren't commands. You need to show us the actual command if you want us to convert it
What you showed is not strcmp, these are just the DCMDs under the Callback OnPlayerCommandText.
What you showed ARE commands and are being used. look for example for: dcmd_gcommands(playerid, params[])
that's where the actual code of the command is written.