SA-MP Forums Archive
Help please - 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: Help please (/showthread.php?tid=208150)



Help please - darkknight123 - 07.01.2011

Hello, Like most of you know I'm working on a server and I'm wanting to make a /mw command where it sets the players name to red and gives him 6 stars also the kill will receve money like a manhunt type thing but i dont know where to start please me


Re: Help please - John_F - 07.01.2011

https://sampwiki.blast.hk/wiki/SetPlayerColor
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
https://sampwiki.blast.hk/wiki/OnPlayerDeath
https://sampwiki.blast.hk/wiki/GivePlayerMoney

use killerid as the player id parameter in giveplayermoney under onplayerdeath


Re: Help please - Georgelopez1 - 07.01.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/mw", true) == 0)
{
    SetPlayerWantedLevel(playerid, 6);
    SetPlayerColor(playerid, 0xFF0000AA);
    SendClientMessage(playerid, 0xFF0000AA, "You are now wanted");
    return 1;
}