18.06.2012, 10:07
Hi there!
A guy Kindred scripted a cmd for me, the code is:
I did last part , "The Person got away, you've failed to rape him"
Ok so, first to start off
When i successfully rape a guy it says this msg too "The person got away blah blah"
The code that KindRed provided which i've appriciated a lot has few problems too
Main one
The messages
Do not APPEAR in chat.
Also if anyone can script and fix this so
- You can not rape a player from a car, you need to be on foot
- You can not rape the player twice, you need to rape some other guy first to again rape him, which will be in beetwen 1min every rape attempt you can do :P
- I can rape a guy 100 times in a row , i need a timer of 1 minute in beetwen every rape
P.S: I'm a noob at pawn, i'm learning it tho from time to time.
Thanks a lot!
Regards!
A guy Kindred scripted a cmd for me, the code is:
Код:
CMD:rape(playerid, params[]) { new targetid; if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "Usage: /rape [playerid]"); else if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "Invalid player specified."); else if(targetid == playerid) return SendClientMessage(playerid, -1, "You can't rape yourself!"); new success = random(4); if(success == 1) { new Float:oldhealth, Float:oldx, Float:oldy, Float:oldz; GetPlayerHealth(targetid, oldhealth); SetPlayerHealth(targetid, oldhealth - 20); PlayerPlaySound(targetid,1190,0.0,0.0,0.0); GetPlayerPos(targetid, oldx, oldy, oldz); SetPlayerPos(targetid, oldx, oldy, oldz + 3); } new fail = random(4); if(fail ==2) { SendClientMessage(playerid,-1,"The person got away, you've failed to rape him"); } return 1; }
Ok so, first to start off
When i successfully rape a guy it says this msg too "The person got away blah blah"
The code that KindRed provided which i've appriciated a lot has few problems too
Main one
The messages
Код:
"You can't rape yourself!"
Код:
"Invalid player specified."
Also if anyone can script and fix this so
- You can not rape a player from a car, you need to be on foot
- You can not rape the player twice, you need to rape some other guy first to again rape him, which will be in beetwen 1min every rape attempt you can do :P
- I can rape a guy 100 times in a row , i need a timer of 1 minute in beetwen every rape
P.S: I'm a noob at pawn, i'm learning it tho from time to time.
Thanks a lot!
Regards!