Author Topic: Who can give me anti-vehicle-kill script  (Read 8917 times)

0 Members and 1 Guest are viewing this topic.

Offline andr

  • Street Thug
  • *
  • Posts: 3
    • View Profile
Who can give me anti-vehicle-kill script
« on: February 24, 2013, 12:32:17 pm »
plz

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Who can give me anti-vehicle-kill script
« Reply #1 on: February 24, 2013, 04:12:42 pm »
What your point ? I dont understand. Are you talking "when player car damaged it will be auto fix" ?
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #2 on: February 24, 2013, 06:09:46 pm »
he need a anti-vehicle killer
some players are noobs and kill inside a vehicle
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #3 on: February 24, 2013, 06:22:19 pm »
Write this in public OnPlayerDeath.
[pawn]if ( reason == 39 )
      {
            format( string, 128, "Auto-Kill:[ %s ] Reason:[ Vehicle-Kill ]", gPlayers[ killerid ] );
            SendClientMessageToAll( COLOR_GREEN, string );
            SetPlayerHealth( killerid , 0);
                                RemovePlayerFromVehicle( killerid );
      }[/pawn]
I haven't test it,but it should be work.

Offline andr

  • Street Thug
  • *
  • Posts: 3
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #4 on: February 25, 2013, 03:40:36 pm »
Write this in public OnPlayerDeath.
[pawn]if ( reason == 39 )
      {
            format( string, 128, "Auto-Kill:[ %s ] Reason:[ Vehicle-Kill ]", gPlayers[ killerid ] );
            SendClientMessageToAll( COLOR_GREEN, string );
            SetPlayerHealth( killerid , 0);
                                RemovePlayerFromVehicle( killerid );
      }[/pawn]
I haven't test it,but it should be work.
Code: [Select]
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(102) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(102) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(115) : error 017: undefined symbol "FindPlayerIDFromString"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(133) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(133) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(148) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(148) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(163) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(163) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(164) : error 017: undefined symbol "FindPlayerIDFromString"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(189) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(189) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(206) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(206) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(210) : error 017: undefined symbol "FindPlayerIDFromString"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(228) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(228) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(241) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(241) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(254) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(254) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(267) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(267) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(277) : error 017: undefined symbol "strtok"

Compilation aborted.Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase


26 Errors.

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #5 on: February 26, 2013, 12:46:48 am »
need put another }
in the end of public OnPlayerDeath
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline Akcent Ohare

  • Street Thug
  • *
  • Posts: 9
  • Mature Avenue. Terminology of the World!
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #6 on: February 26, 2013, 12:56:13 am »
need put another }
in the end of public OnPlayerDeath
O c'mon, he didn't even use that in the code.

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #7 on: February 27, 2013, 03:55:21 pm »
Write this in public OnPlayerDeath.
[pawn]if ( reason == 39 )
      {
            format( string, 128, "Auto-Kill:[ %s ] Reason:[ Vehicle-Kill ]", gPlayers[ killerid ] );
            SendClientMessageToAll( COLOR_GREEN, string );
            SetPlayerHealth( killerid , 0);
                                RemovePlayerFromVehicle( killerid );
      }[/pawn]
I haven't test it,but it should be work.

what about a new string first? This guy looks like justice user, so he won't know how to do it.
And, why did u put RemovePlayerFromVehicle(killerid)? Tell me the way to kill someone who is in vehicle when u too? or, maybe, u mean anti-driveby? So then u can use [pawn]DisableDriveby(playerid, 1)[/pawn] in OnPlayerConnect. Learn a_vcmp functions, it's easy, and u will write scripts with the simple code.


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Who can give me anti-vehicle-kill script
« Reply #8 on: February 27, 2013, 05:32:32 pm »
Write this in public OnPlayerDeath.
[pawn]if ( reason == 39 )
      {
            format( string, 128, "Auto-Kill:[ %s ] Reason:[ Vehicle-Kill ]", gPlayers[ killerid ] );
            SendClientMessageToAll( COLOR_GREEN, string );
            SetPlayerHealth( killerid , 0);
                                RemovePlayerFromVehicle( killerid );
      }[/pawn]
I haven't test it,but it should be work.

what about a new string first? This guy looks like justice user, so he won't know how to do it.
And, why did u put RemovePlayerFromVehicle(killerid)? Tell me the way to kill someone who is in vehicle when u too? or, maybe, u mean anti-driveby? So then u can use [pawn]DisableDriveby(playerid, 1)[/pawn] in OnPlayerConnect. Learn a_vcmp functions, it's easy, and u will write scripts with the simple code.

add in GameModeInit:

[pawn]DisableDriveby(playerid, 1)[/pawn]

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #9 on: February 27, 2013, 06:51:40 pm »
Write this in public OnPlayerDeath.
[pawn]if ( reason == 39 )
      {
            format( string, 128, "Auto-Kill:[ %s ] Reason:[ Vehicle-Kill ]", gPlayers[ killerid ] );
            SendClientMessageToAll( COLOR_GREEN, string );
            SetPlayerHealth( killerid , 0);
                                RemovePlayerFromVehicle( killerid );
      }[/pawn]
I haven't test it,but it should be work.

what about a new string first? This guy looks like justice user, so he won't know how to do it.
And, why did u put RemovePlayerFromVehicle(killerid)? Tell me the way to kill someone who is in vehicle when u too? or, maybe, u mean anti-driveby? So then u can use [pawn]DisableDriveby(playerid, 1)[/pawn] in OnPlayerConnect. Learn a_vcmp functions, it's easy, and u will write scripts with the simple code.

add in GameModeInit:

[pawn]DisableDriveby(playerid, 1)[/pawn]

sorry but DUMB! OnGameModeInit is called when user ( server owner ) starts server process. You can't pass playerid var into OnGameModeInit. Use DisableDriveby only in OnPlayerConnect or in OnPlayerSpawn.


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #10 on: March 20, 2013, 12:55:21 am »
put this in onplayerdeath and onplayerkill
if ( IsPlayerInAnyVehicle( killerid )) SetPlayerHealth(killerid, 0);

if anybody kill you with vehicle he got kill automatic
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline killvn1

  • Street Thug
  • *
  • Posts: 33
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #11 on: April 30, 2013, 03:15:48 am »
put this in onplayerdeath and onplayerkill
if ( IsPlayerInAnyVehicle( killerid )) SetPlayerHealth(killerid, 0);

if anybody kill you with vehicle he got kill automatic

I'd love a harder way . With my way you can anti both vehicle killer and drive-by killer :))
Take this :
Put it in public OnPlayerDeath

                if (IsPlayerInAnyVehicle(killerid)) {
      SendClientMessage(killerid, RED, "Fuck you ...");
      Ban(killerid);
      }
PROBLEM ?
« Last Edit: April 30, 2013, 03:17:40 am by killvn1 »

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #12 on: April 30, 2013, 08:03:00 am »
lolx ban
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Who can give me anti-vehicle-kill script
« Reply #13 on: April 30, 2013, 04:18:21 pm »
put this in onplayerdeath and onplayerkill
if ( IsPlayerInAnyVehicle( killerid )) SetPlayerHealth(killerid, 0);

if anybody kill you with vehicle he got kill automatic

I'd love a harder way . With my way you can anti both vehicle killer and drive-by killer :))
Take this :
Put it in public OnPlayerDeath

                if (IsPlayerInAnyVehicle(killerid)) {
      SendClientMessage(killerid, RED, "Fuck you ...");
      Ban(killerid);
      }
PROBLEM ?

[pawn]Put it in public OnPlayerDeath

                if (IsPlayerInAnyVehicle(killerid)) {
      SendClientMessage(killerid, RED, "Forbidden Drive By this Server");
      SetPlayerHealth(killerid, 1);
                RemovePlayerFromVehicle(killerid);
      }[/pawn]

Offline TBS.Milko

  • Street Thug
  • *
  • Posts: 15
    • View Profile
Re: Who can give me anti-vehicle-kill script
« Reply #14 on: April 30, 2013, 08:25:03 pm »

if anybody kill you with vehicle he got kill automatic

I'd love a harder way . With my way you can anti both vehicle killer and drive-by killer :))
Take this :
Put it in public OnPlayerDeath

                if (IsPlayerInAnyVehicle(killerid)) {
      SendClientMessage(killerid, RED, "Fuck you ...");
      Ban(killerid);
      }
PROBLEM ?
[/quote]

LOL