Jump to content

Anti hydra/hunter shoot


IstuntmanI

Recommended Posts

Anti hydra/hunter shoot

[o]Descriere:

          - Este un Mini-FS care nu lasa pe nimeni sa traga cu hydra sau hunter.

[o]Poza:

samp000u.png

[o]Cum sa faci sa apara doar la cei care nu au admin:

          - exemplu pentru LuxAdmin:

Inlocuiti

if(newkeys & KEY_FIRE || newkeys & KEY_ACTION && GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 425)
	{
	    ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra","--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\
		         \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\tYou can't shoot with hunter or hydra\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","Ok","Ok");
	}
cu
if(AccInfo[playerid][Level] == 0)
	{
		if(newkeys & KEY_FIRE || newkeys & KEY_ACTION && GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 425)
		{
		    ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra","--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\
			         \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\tYou can't shoot with hunter or hydra\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","Ok","Ok");
		}
	}

[o]Download:

          - .pwn: http://solidfiles.com/d/dfaa/

          - Arhiva: http://solidfiles.com/d/9721/

N-am avut ce sa fac, si am creeat acest FS simplu :D.

Link to comment
Share on other sites

if(newkeys & KEY_FIRE || newkeys & KEY_ACTION && GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 425)
   {
       ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra","--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\
               \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\tYou can't shoot with hunter or hydra\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","Ok","Ok");
   }
Decat sa folosesti un string atat de lung, care arata si urat pe deasupra. Mai bine faci asat. Un loop sa duplicheze "-" de 254 ori( Is exact cat ai tu le-am numarat cu printf("%d",strlen("---...") );
new S[ 270 ],S2[ 50 ],S3[ sizeof( S ) + sizeof( S2 ) + 20 ];
for ( new O = 0; O < 254; O++ )format( S, sizeof( S ), "%s-",S);
for ( new O = 0; O < 30; O++ )format( S2, sizeof( S2 ), "%s\n",S2);
format( S3, sizeof ( S3 ), "%s%s\t\t\t\t\t\t\tYou can't shoot with hunter or hydra%s",S,S2,S2);
ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra",S3,"Ok","Ok");
Asa ca ar veni
if(newkeys & KEY_FIRE || newkeys & KEY_ACTION && GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 425)
{
    new S[ 270 ],S2[ 50 ],S3[ sizeof( S ) + sizeof( S2 ) + 20 ];
    for ( new O = 0; O < 254; O++ )format( S, sizeof( S ), "%s-",S);
    for ( new O = 0; O < 30; O++ )format( S2, sizeof( S2 ), "%s\n",S2);
    format( S3, sizeof ( S3 ), "%s%s\t\t\t\t\t\t\tYou can't shoot with hunter or hydra%s",S,S2,S2);
    ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra",S3,"Ok","Ok");
}

Link to comment
Share on other sites

Nu intelegeam ce drecu era cu textu pe mijlochaha.gif.Greu mi-am dat seama ca e un dialog  :D


Este simplu,funny,punky,etc.

Idee proprie,stil propriu,9/10


Se mai poate cu OnPlayerUpdate,pui return 0 cand apasa click(sau ce e) si e in hydra.Nu transmite semnalele la server si numai el vede ca trage  ;D

Link to comment
Share on other sites

if(newkeys & KEY_FIRE || newkeys & KEY_ACTION && GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 425)
   {
       ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra","--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\
               \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\tYou can't shoot with hunter or hydra\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","Ok","Ok");
   }
Decat sa folosesti un string atat de lung, care arata si urat pe deasupra. Mai bine faci asat. Un loop sa duplicheze "-" de 254 ori( Is exact cat ai tu le-am numarat cu printf("%d",strlen("---...") );
new S[ 270 ],S2[ 50 ],S3[ sizeof( S ) + sizeof( S2 ) + 20 ];
for ( new O = 0; O < 254; O++ )format( S, sizeof( S ), "%s-",S);
for ( new O = 0; O < 30; O++ )format( S2, sizeof( S2 ), "%s\n",S2);
format( S3, sizeof ( S3 ), "%s%s\t\t\t\t\t\t\tYou can't shoot with hunter or hydra%s",S,S2,S2);
ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra",S3,"Ok","Ok");
Asa ca ar veni
if(newkeys & KEY_FIRE || newkeys & KEY_ACTION && GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 425)
{
    new S[ 270 ],S2[ 50 ],S3[ sizeof( S ) + sizeof( S2 ) + 20 ];
    for ( new O = 0; O < 254; O++ )format( S, sizeof( S ), "%s-",S);
    for ( new O = 0; O < 30; O++ )format( S2, sizeof( S2 ), "%s\n",S2);
    format( S3, sizeof ( S3 ), "%s%s\t\t\t\t\t\t\tYou can't shoot with hunter or hydra%s",S,S2,S2);
    ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra",S3,"Ok","Ok");
}

Tu numai complicat stii sa faci ? Eu am bagat - pana cand s-a umplut ecranul :]]

Foarte tare 10/10  ;) ;D

=- link=topic=7302.msg45358#msg45358 date=1289578425]

Frumusel si funny!

Am crezut ca l-ai pus pe ala modificat de mine si facut in 3 linii :))

Nu intelegeam ce drecu era cu textu pe mijlochaha.gif.Greu mi-am dat seama ca e un dialog  :D


Este simplu,funny,punky,etc.

Idee proprie,stil propriu,9/10


Se mai poate cu OnPlayerUpdate,pui return 0 cand apasa click(sau ce e) si e in hydra.Nu transmite semnalele la server si numai el vede ca trage  ;D

ty,nu stiam asta xD, credeam ca tot o vad toti, o sa bag return 0 :D

guud

Ty all :D

Link to comment
Share on other sites

  • 2 weeks later...

Era bine daca puneai si la rhino :)

Ti-e greu sa adaugi un || si sa bagi un nou check pentru Rhino?

Na ma lenese, ia de aici

if(newkeys & KEY_FIRE || 
newkeys & KEY_ACTION &&
GetVehicleModel(GetPlayerVehicleID(playerid)) == 520 || 
GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 ||
GetVehicleModel(GetPlayerVehicleID(playerid)) == 432)
{
    new S[ 270 ],S2[ 50 ],S3[ sizeof( S ) + sizeof( S2 ) + 20 ];
    for ( new O = 0; O < 254; O++ )format( S, sizeof( S ), "%s-",S);
    for ( new O = 0; O < 30; O++ )format( S2, sizeof( S2 ), "%s\n",S2);
    format( S3, sizeof ( S3 ), "%s%s\t\t\t\t\t\t\tYou can't shoot with hunter,hydra or rhino%s",S,S2,S2);
    ShowPlayerDialog(playerid, 9999,DIALOG_STYLE_MSGBOX,"Don't shoot with hunter/hydra/rhino",S3,"Ok","Ok");
}

]

Link to comment
Share on other sites

1/5 .. nu imi place deoarece nu mai poti face un event akm..daca nu-ti da voie sa tragi...etc...dar fiiecare cu parerile lui..

LoL frate ai facut spam pana ai facut 100 de posturi :|

Cum poti sa ii dai 1/5 :| fs il foloseste cine vrea nu oricine daca vrei sa nu mai fie mult dm pe srv il iei daca nu nu

16189165.gifrastamaunbydeejaylobo1.gifsmileysw0181.gif

xmsok6ay41.gif

Link to comment
Share on other sites

1/5 .. nu imi place deoarece nu mai poti face un event akm..daca nu-ti da voie sa tragi...etc...dar fiiecare cu parerile lui..

Asta e scriptu "mama",de acuma tu il editezi sa iti mearga pt eventuri si alte kkt-uri!

Si tu esti in "+" ca nici nu stii pentru ce este acest script  ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.