[DS] Desert Storm GTA Clan
|
| | RPG's Problem | |
| | Author | Message |
---|
Darkness Legend
Posts : 416 Join date : 2012-06-30 Age : 28 Location : Latvia Job/hobbies : student/basketball
| Subject: RPG's Problem Sat Nov 24 2012, 15:50 | |
| As almost everyone knows, 90% of rpg users dont use this weapon on vehicles(tanks,hydras) but on on-foot players what ruins everything..Half of my deaths are from RPG's..
Need something like auto kill when players shoot's on on-foot players..
If any ideas, feel free to post here..
Thanks! | |
| | | Spike Legend
Posts : 638 Join date : 2012-08-03 Age : 26 Location : Pasadena , California Job/hobbies : Studying , movies , hanging out.....
| Subject: Re: RPG's Problem Sat Nov 24 2012, 16:47 | |
| Well..... I think this would work....
The RPG Rockets must reduce only vehicle's health , not player's health. Therefore , Even if they use it on players who wander around , It would create no effect....But if they use it on vehicles , It would reduce the vehicle's health....
Now , I don't know how to limit it to Rhinos and stuff.... but this could be a temporary plan..
| |
| | | Warrior Legend
Posts : 1176 Join date : 2012-07-01 Age : 110 Location : On Mars playing with monkeys. Job/hobbies : Playing samp on DS
| Subject: Re: RPG's Problem Sat Nov 24 2012, 16:48 | |
| They can do an easy check ,like: When a player dies(OnPlayerDeath) check to see if he got killed by an RPG if that is true, check to see if the killerid was on foot(!IsPlayerInAnyVehicle), if that is true then kill him or whatever, lol. EDIT: My small test one: - Code:
-
public OnPlayerDeath(playerid, killerid, reason) { if(GetPlayerWeapon(killerid) == 35) { if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(killerid, -1, "Fuck you, you RPG user!"); SendClientMessage(playerid, -1, "Asshole got busted!"); } } return 1; } Small example. | |
| | | Criss_Angel
Posts : 986 Join date : 2012-07-07 Job/hobbies : In front of my PC :P
| Subject: Re: RPG's Problem Sat Nov 24 2012, 17:22 | |
| How about a cmd called /protectionon and /protectionoff,this command will give protection to the player from others who fire RPG'S at him or her,and thus RPG can be only used against tanks,hydras etc. Thank You. | |
| | | Khách vi Guest
| Subject: Re: RPG's Problem Sun Nov 25 2012, 00:30 | |
| +1 for Einstain suggestion. |
| | | Ultimate[R]
Posts : 540 Join date : 2012-08-02 Age : 25 Location : India Job/hobbies : Studying
| Subject: Re: RPG's Problem Sun Nov 25 2012, 14:31 | |
| - [DS]Warrior wrote:
- They can do an easy check ,like:
When a player dies(OnPlayerDeath) check to see if he got killed by an RPG if that is true, check to see if the killerid was on foot(!IsPlayerInAnyVehicle), if that is true then kill him or whatever, lol.
EDIT:
My small test one:
- Code:
-
public OnPlayerDeath(playerid, killerid, reason) { if(GetPlayerWeapon(killerid) == 35) { if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(killerid, -1, "Fuck you, you RPG user!"); SendClientMessage(playerid, -1, "Asshole got busted!"); } } return 1; } Small example. Nice messages to be send to the killer. And +2 scores loss for the killer | |
| | | Sponsored content
| Subject: Re: RPG's Problem | |
| |
| | | | RPG's Problem | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |
|