20.06.2012, 10:19
Hey...I am looking for two commands (based on zcmd if possible).
One would be /rape , where you rape someone , he loses some hp and he jumps into the air when it happens , and it would be a random thing, like 75% chance of success on the cmd working, and when it doesnt work, it would say "failed" or something.
Here is what I have , but it always gives the failed message on screen (oh and It would have to work only when you are , lets say , 2m away from the person or a bit less?)
Ok and the other zcmd which I cant get my head through is one that would be on command /sit 8 , your player does the lying down on his side animation.
First , I cant find the animation name, and secondly I dont understand the tutorials (but I dont want a filterscript neither)
Thanks everyone
pd:if you want to help script this dm server, pm me :d
One would be /rape , where you rape someone , he loses some hp and he jumps into the air when it happens , and it would be a random thing, like 75% chance of success on the cmd working, and when it doesnt work, it would say "failed" or something.
Here is what I have , but it always gives the failed message on screen (oh and It would have to work only when you are , lets say , 2m away from the person or a bit less?)
pawn Code:
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;
}
First , I cant find the animation name, and secondly I dont understand the tutorials (but I dont want a filterscript neither)
Thanks everyone
pd:if you want to help script this dm server, pm me :d