need help!
#1

Hi mates! i am using SFCRRPG v 1.1 and I want to change the robbery dialogs to textdraw like San Fierro Cops and Robbers 0.3x. Can anyone tell me from where to start? also how to make a textdraw meter thats fills with a timer?
Reply
#2

What you mean by changing robbery dialogs?You want to change gamemode text you can do this.
Search for "SetGamemodeText" without quotes and change to San Fierro Cops and Robbers 0.3x.
Reply
#3

LOL I don't want to change the server name or something, I want to remove a dialog that shows time to a textdraw meter that fills in a given time.
Reply
#4

ok now start from here add these at the top of your script:

PHP код:
new RobberyTime[MAX_PLAYERS];
new 
Text:RobberyTimer[MAX_PLAYERS];
new 
RobberySetTimer[MAX_PLAYERS];
forward RobberyTextDraw(playerid); 
now you should make a textdraw for this like this one you can use it:

PHP код:
    RobberyTimer[playerid] = TextDrawCreate(505.000000411.000000"RobberyTime: 25");
    
TextDrawBackgroundColor(RobberyTimer[playerid], -1);
    
TextDrawFont(RobberyTimer[playerid], 3);
    
TextDrawLetterSize(RobberyTimer[playerid], 0.5299991.299999);
    
TextDrawColor(RobberyTimer[playerid], 65535);
    
TextDrawSetOutline(RobberyTimer[playerid], 1);
    
TextDrawSetProportional(RobberyTimer[playerid], 1);
    
TextDrawUseBox(RobberyTimer[playerid], 1);
    
TextDrawBoxColor(RobberyTimer[playerid], 255);
    
TextDrawTextSize(RobberyTimer[playerid], 633.0000000.000000); 
now when you want to rob somewhere server will show you a dialog right?! so change ShowPlayerDialog
to this it's a timer for each second

PHP код:
RobberySetTimer[playerid] = SetTimerEx("RobberyTextDraw"1000true"i"playerid);
RobberTime[playerid] = 25;
TextDrawShowForPlayer(playerid RobberyTimer[playerid]); 
now put this every where you want

PHP код:
public RobberyTextDraw(playerid)
{
RobberyTime[playerid] --;
new 
string[128];
format(string,sizeof(string),"RobberyTime : %d",RobberyTime[playerid]);
TextDrawSetStringRobberyTimer[playerid] , string);
if( 
RobberyTime[playerid] == 0)
{
    
KillTimer(RobberySetTimer[playerid]);
    
GivePlayerMoney(playerid 10000);
    
TextDrawHideForPlayer(playerid RobberyTimer[playerid]);
}
return 
1;

Reply
#5

I got this line's error:
LINE:
if(RobberyTimer[playerid] == 0)
ERROR:
Tag Mis Match
Reply
#6

sorry now updated

change it to if(RobberyTime[playerid] == 0)

and don't forget my rep if i helped you
Reply
#7

Yup it works but you didn't unerstand me i want a meter like San Fierro cops and robbers 0.3x, something like

______________________________
[[[[[[[[[[[[[[[
-----------------------------------

Understand a meter. same size as above.
Reply
#8

i didn't see that server
Reply
#9

Somehow i managed to get a screenshot, please can someone create a textdraw like this for me?
Reply
#10

Thats Lorenc_ server idont think its available in the forum.You have to make this yourself.
I'm sorry if this post of mine is an advertisement.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)