need help! -
HitterHitman - 12.01.2014
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?
Re: need help! -
Sojo12 - 12.01.2014
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.
Re: need help! -
HitterHitman - 12.01.2014
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.
Re: need help! -
amirab - 12.01.2014
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.000000, 411.000000, "RobberyTime: 25");
TextDrawBackgroundColor(RobberyTimer[playerid], -1);
TextDrawFont(RobberyTimer[playerid], 3);
TextDrawLetterSize(RobberyTimer[playerid], 0.529999, 1.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.000000, 0.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", 1000, true, "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]);
TextDrawSetString( RobberyTimer[playerid] , string);
if( RobberyTime[playerid] == 0)
{
KillTimer(RobberySetTimer[playerid]);
GivePlayerMoney(playerid , 10000);
TextDrawHideForPlayer(playerid , RobberyTimer[playerid]);
}
return 1;
}
Re: need help! -
HitterHitman - 12.01.2014
I got this line's error:
LINE:
if(RobberyTimer[playerid] == 0)
ERROR:
Tag Mis Match
Re: need help! -
amirab - 12.01.2014
sorry now updated
change it to if(RobberyTime[playerid] == 0)
and don't forget my rep if i helped you
Re: need help! -
HitterHitman - 12.01.2014
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.
Re: need help! -
amirab - 12.01.2014
i didn't see that server
Re: need help! -
HitterHitman - 12.01.2014
Somehow i managed to get a screenshot, please can someone create a textdraw like this for me?
Re: need help! -
Sojo12 - 12.01.2014
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.