SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 12/04/2012, 05:12 PM   #1
Abhishek.
Huge Clucker
 
Abhishek.'s Avatar
 
Join Date: Jan 2012
Location: http://forum.sa-mp.com/member.php?u=152987
Posts: 480
Reputation: 49
Default credits

can someone help me make a credit script for my server?
__________________
http://fatninjasa-mpservices.tk/forum/index.php
Looking forward to do Some hard work for good $$$.
Abhishek. is offline   Reply With Quote
Old 12/04/2012, 05:42 PM   #2
DarkB0y
Huge Clucker
 
Join Date: Dec 2011
Posts: 378
Reputation: 36
Default Re: credits

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

have fun
DarkB0y is offline   Reply With Quote
Old 13/04/2012, 12:52 AM   #3
Abhishek.
Huge Clucker
 
Abhishek.'s Avatar
 
Join Date: Jan 2012
Location: http://forum.sa-mp.com/member.php?u=152987
Posts: 480
Reputation: 49
Default Re: credits

thnx, am i to enter that in my gamemode?
__________________
http://fatninjasa-mpservices.tk/forum/index.php
Looking forward to do Some hard work for good $$$.
Abhishek. is offline   Reply With Quote
Old 13/04/2012, 06:28 AM   #4
Mark™
High-roller
 
Mark™'s Avatar
 
Join Date: Apr 2011
Location: Ile-de-France
Posts: 1,750
Reputation: 424
Default Re: credits

Quote:
Originally Posted by [bot]fatninja View Post
thnx, am i to enter that in my gamemode?
pawn Code:
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 Code:
#define DIALOGID3 101 // 101 is the unique dialog id defined for a dialog named DIALOGID3
Mark™ is offline   Reply With Quote
Old 13/04/2012, 11:42 AM   #5
Ptcl®
Little Clucker
 
Ptcl®'s Avatar
 
Join Date: Apr 2012
Location: Quetta/Marry-abad
Posts: 15
Reputation: 0
Wink Re: credits

pawn Code:
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 !
__________________
Proud to be Hazara/shia
Garhouse V3.0|My Website|My Stunting server Under Construction
PM ME HERE if you want to create the coolest and best forum for your server !!! i will create it for free (smf)
Ptcl® is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
..:: /credits command::.. ?? Ammo Scripting Help 7 25/06/2012 07:53 PM
Credits Kwarde Help Archive 2 13/04/2011 05:56 AM
help please (credits will be awarded) luigifan9 Help Archive 3 17/04/2010 01:50 AM


All times are GMT. The time now is 03:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.