SA-MP Forums Archive
[Request] RP Tutorials - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: [Request] RP Tutorials (/showthread.php?tid=322261)



[Request] RP Tutorials - sanplayer - 01.03.2012

I need some tutorials to add some features to my RP Script.

I am on about:

/o, /n, /b, /s

Factions

Implementing local chat they are the only ones. I cant find one on the search feature.

Oh and how do I set admin levels and make /admins with ZCMD .

I cant find out ;/

Also how to make it so It is only a certain level+ who can do a cmd.

Sorry for all questions but I only been scripting a month This script will be for my server


Re: [Request] RP Tutorials - VIPAwesome - 02.03.2012

pawn Код:
CMD:o(playerid, params[])
{
    if(gPlayerLogged{playerid} == 0)
    {
        SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
        return 1;
    }
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/o)oc [ooc chat]");
        new string[128];
        format(string, sizeof(string), "(( %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
    }
}