SA-MP Forums Archive
pls help me in making this cmd - 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)
+--- Thread: pls help me in making this cmd (/showthread.php?tid=639997)



pls help me in making this cmd - SuperHelper - 26.08.2017

hello i want to learn that how to make cmds like this

usage : /kill [Playername/partofname]
if i type /kill super
so it kill that player and
usage : /setplayerhealth [playername/partofname]
so by this i can set player helth by his name so pls help me to make
this cmds

and
thnx lot


Re: pls help me in making this cmd - Bingo - 26.08.2017

https://sampforum.blast.hk/showthread.php?tid=447813

That's the right section.


Re: pls help me in making this cmd - SuperHelper - 26.08.2017

Quote:
Originally Posted by Bingo
Посмотреть сообщение
i m new sorry if i m saying anything wrong that

i think i not asked for scripter
i just asked that i want cmd like tht



sorry if i said any bad word to u


Re: pls help me in making this cmd - 10MIN - 26.08.2017

Yup. If you want something to be done by someone, you need a scripter... This is a forum for helping with errors, warnings, tips, etc...
PS:The commands are easy. (just read the tut from my signature)


Re: pls help me in making this cmd - SuperHelper - 26.08.2017

Код:
CMD:givemoneys(playerid, params[])
{
 if(adlvl[playerid] < 7) return 0;
 new tid, mamount, moneys,string[280], gethim[MAX_PLAYER_NAME];
 if(sscanf(params,"ui", tid, mamount)) return SCM(playerid, COLOR_RED,"[Server] : Correct usage : /givemoney [Playerid/PlayerName] [Amount]");
 else if (tid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "[SERVER] : That Player Is Not Connected");
 else if(!IsPlayerConnected(tid)) SCM(playerid, COLOR_GREEN,"[SERVER] : That Player Is Not Connected"); 
 GivePlayerMoney(tid, mamount);
 GetPlayerName(playerid, gethim, sizeof(gethim));
 format(string, sizeof(string),"{008800}%s Has Given {FF0000}$%d {008800}To You", gethim, mamount);
 SendClientMessage(tid, 0xFFFFFF, string);
 return 1;
}
thnx u both i created this command my own