Target id
#1

Hey i need some help with target ids.
Im using ZCMD and SSCANF.
Im wondering on how to make something like: /bimboeblopblopklop [ID]
It will do stuff to the player and will say to you "You havebimboeblopblopklop'd [PLAYER]"
If player is not connected it ll say something to you too
Reply
#2

Basic:

pawn Код:
CMD:command(playerid, params[])
{
    new id;
    if(sscanf(params, "d", id)) return Msg(playerid, color, "USAGE: /command <playerid>"); // if the command params aren't correct
    kick(id); // The function which will affect the target id
    //...
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)