Kush's Tutorial.
#1

No-one is able to give a BASIC set of admin commands for me, or at least a template.

*sigh*

Please help me with giving me a basic admin command for it in Y_CMD format. :P
Reply
#2

Can you send the link of this tutorial?
Reply
#3

pawn Код:
YCMD:spawnvehicle(playerid, params)
{
    if(PlayerInfo[playerid][pAdmin] < 1  ) return SendClientMessage(playerid, -1, "You are not an admin!");
    new skin, player;
    if(sscanf(params, "ud", player, skin)) return SendClientMessage(playerid, COLOR_GREY, "YCMD: /setskin [Part of Name/ID] [SkinID]");
    if(skin < 0 || skin > 299) return SendClientMessage(playerid, COLOR_GREY, "YCMD: Invalid skin!");
    SetPlayerSkin(player, skin);
    return 1;
}
This is an example.

if(PlayerInfo[playerid][pAdmin] <1 ) return SendClientMessage(playerid, -1, "You are not an admin!"); <--- Checks if they are an Admin...
Reply
#4

Thank you!!!! So much better!!
Reply
#5

CMD uses the same syntax as YCMD.
I think you could convert it easily.
Reply
#6

Is strcmp the same as y_cmd?
Reply
#7

Well besides the way of scripting it is different but they do the same thing...

I use zCMD
Reply
#8

No.

strcmp is used for string comparing.
and ycmd is a command processor.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)