SA-MP Forums Archive
How could i.... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How could i.... (/showthread.php?tid=172402)



How could i.... - ColdXX - 29.08.2010

I wanna make some fund commands like /rape id
And say something like Cold has grabbed (name) and violently raped him!
also
Cold has raped (NAme) to death!

Stuff like that!

How should i make that?

Thanks!


Re: How could i.... - willsuckformoney - 30.08.2010

Not what you wanted but....

pawn Код:
dcmd_rape(playerid,params[]) {
    if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /rape [playerid]");
    new player1, string[128], playername[MAX_PLAYER_NAME], Float:Health;
    player1 = strval(params);

    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
        GetPlayerName(player1, playername, sizeof(playername));
        format(string,sizeof(string),"You have raped %s",playername);
        SendClientMessage(playerid,red,string);
        GetPlayerHealth(player1,Health); SetPlayerHealth(player1,Health-15);
    }
    return 1;
}
And OnPlayerCommandText

dcmd(rape,4,cmdtext);

Hope Helps


Re: How could i.... - ColdXX - 30.08.2010

alright mate tyvm!
Ill edit it as i want DW