SA-MP Forums Archive
credits - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: credits (/showthread.php?tid=333735)



credits - Abhishek. - 12.04.2012

can someone help me make a credit script for my server?


Re: credits - DarkB0y - 12.04.2012

PHP код:
CMD:credits(playerid,params[]){
    
#pragma unused params
    
ShowPlayerDialog(playeridDIALOGID3DIALOG_STYLE_MSGBOX"credits","{put ur credits here "ok", "Cancel");
    return 1;

have fun


Re: credits - Abhishek. - 13.04.2012

thnx, am i to enter that in my gamemode?


Re: credits - Mark™ - 13.04.2012

Quote:
Originally Posted by [bot]fatninja
Посмотреть сообщение
thnx, am i to enter that in my gamemode?
pawn Код:
CMD:credits(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOGID3, DIALOG_STYLE_MSGBOX, "credits" "your credits", "ok", "Cancel");
    return 1;
}
Put this code in your gamemode along with other commands and not under any public callback.Also define your dialog with a dialog id at the top of your script along with other defines.

pawn Код:
#define DIALOGID3 101 // 101 is the unique dialog id defined for a dialog named DIALOGID3



Re: credits - Ptcl® - 13.04.2012

pawn Код:
CMD:credits(playerid,params[])
    {
        new String[ 1024 ];
        format( String, sizeof( String ),               ""COL_RED"Credits\n\n\
                                                        "
COL_RED"her put any name{FFFFFF}- and his work here ! \n\
                                                        "
COL_RED"Gamer {FFFFFF}- Owner and Community Leader.\n\
                                                        "
COL_RED"Smokie {FFFFFF}- Have an nice experiance and co-owner\n\
                                                        "
COL_RED"Mr.Omer / Karl {FFFFFF}- Best administrator's.\n\
                                                        "
COL_LIGHTBLUE"tAxI {FFFFFF}- Vehicle Streamer\n\
                                                        "
COL_LIGHTBLUE"Icognito{FFFFFF} - Objects Streamer\n");
        format( String, sizeof( String ),               "%s"CLB"Double-O-Seven {FFFFFF}- Holding Weapons\n\
                                                        "
COL_LIGHTBLUE"Roach {FFFFFF}- Some maps. /PKPA /PKH\n\
                                                        "
COL_LIGHTBLUE"[03]Garsino {FFFFFF}- Interiors Menu (/INT)\n\n\n\
                                                        "
COL_LIGHTBLUE"Helped with beta testing, help providers, assisting(FFFFFF)\n\
                                                        "
, String);

        ShowDialog( playerid, Credits, BOX, "Credits",  String , "Close", "");

    }
This may help you !