SA-MP Forums Archive
HELP PLEASE T_T - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP PLEASE T_T (/showthread.php?tid=361906)



HELP PLEASE T_T - bodey3333 - 22.07.2012

Please,Need some CMDS to learn from them.
Like:Ban , Kick , Jail , Enter. And can someone give me His/Her Skype/Face Book/Yahoo account to learn from Him/Her than posting every 5 minutes,Because its a very slow method.
PS:The Callback which the command follows Needed.



Re: HELP PLEASE T_T - djjavi0 - 22.07.2012

si necesitas ayudante para tu server de sa-mp dimelo


Re: HELP PLEASE T_T - bodey3333 - 22.07.2012

Is there is a translation for what you said? LOL


Re: HELP PLEASE T_T - XStormiest - 22.07.2012

hmm.....
1.: YCMD : https://sampforum.blast.hk/showthread.php?tid=169029 + tutorial
example command
pawn Код:
YCMD:me(playerid, params[], help)
{
    if (help)
    {
        SendClientMessage(playerid, 0xFF0000AA, "Sends an action to other players.");
    }
    else
    {
        new
            str[128];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/%s [action]\"", Command_GetDisplayNamed("me", playerid));
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            GetPlayerName(playerid, str, sizeof (str));
            format(str, sizeof (str), "* %s %s", str, params);
            SendClientMessageToAll(0xFF0000AA, str);
        }
    }
    return 1;
}
sscanf Link: https://sampforum.blast.hk/showthread.php?tid=120356
learn it and you will know how to make easily a command for example in sscanf

pawn Код:
if(sscanf(params,"ud",id,ammount) ) return SendClientMessage(playerid,COLOR_RED,"Use /givegun [id] [ammount]");
How you can see u = Player ID/Name and ammount ( d) is an integrer ) = number ( ex: 42)
more easily than new tmp[256]; etc... sscanf >(faster than) strtok