Need Little Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Little Help (
/showthread.php?tid=617299)
Need Little Help -
CarRamper - 19.09.2016
my code
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_NO) && PlayerRobberyData[playerid][RobberyTimer] != -1) Robbery_ResetPlayer(playerid, 1);
if(IsPlayerInArea(playerid, 1047.743652, 1843.581420, 1128.563842, 1942.294799))
{
if(gTeam[playerid] == TEAM_EURASIA)
{
new str[100];
format(str, sizeof(str),""cgreen"%s - "cred"Base Rape",(playerid));
SetPlayerHealth(playerid,0);
GameTextForPlayer(playerid,"~y~Base Rape Is Not Allowed", 3000, 3);
}
}
return 1;
}
i am having a problem that when ever i enter the area it kill me.but i want that if player enter the checkpoint and press KEY_NO Then it will check that if player is in area and in the team and then kill him please help me
Re: Need Little Help -
CarRamper - 19.09.2016
Guys please help me
Re: Need Little Help - Quinncell - 19.09.2016
Can you explain better?I can't understand a word you said..
Re: Need Little Help -
CarRamper - 19.09.2016
i am having a problem that when even i even in the area i got killed but i want that it shows me the textdraw and when i press KEY_NO Then I Got Killed Help Please
Re: Need Little Help - Quinncell - 19.09.2016
What textdraw?Do you mean the gametextforplayer?
Also, do you want to be killed when you press the button or automatically?
Re: Need Little Help -
CarRamper - 19.09.2016
I Want him to get killed when he press the rob button in dialog .i want to show him this dialog
Код:
new title[64];
format(title, sizeof(title), "{F1C40F}Robbery: {FFFFFF}%s", RobberyData[i][Name]);
ShowPlayerDialog(playerid, DIALOG_ROBBERY, DIALOG_STYLE_MSGBOX, title, "Do you want to rob this place?", "Rob", "Close");
Re: Need Little Help -
SyS - 19.09.2016
Quote:
Originally Posted by CarRamper
I Want him to get killed when he press the rob button in dialog .i want to show him this dialog
Код:
new title[64];
format(title, sizeof(title), "{F1C40F}Robbery: {FFFFFF}%s", RobberyData[i][Name]);
ShowPlayerDialog(playerid, DIALOG_ROBBERY, DIALOG_STYLE_MSGBOX, title, "Do you want to rob this place?", "Rob", "Close");
|
hmm are you saying that you want to replace that gametextforplayer with that dialog?
just replace the piece of code with gamtextforplayer if you want it like that
Re: Need Little Help -
CarRamper - 19.09.2016
listen u guys i am explaining u in detail
i am having a tdm server in which i have added 5 country bases and at each base i have added 1 robbery safe and it works fine i am able to rob but i want that if player robs this own country safe me got killed.that is what i want
Re: Need Little Help - Quinncell - 19.09.2016
Ohh well that explains it so this makes the code completely wrong.Where is your robbery system located?Might sharing that?Since this is a really slow and useless way of doing so.
Re: Need Little Help -
CarRamper - 19.09.2016
I Am Have used this robbery fs to create robbery and i want to do changes in it only
https://sampforum.blast.hk/showthread.php?tid=607450