Posts: 37
Threads: 3
Joined: Aug 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
Posts: 37
Threads: 3
Joined: Aug 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
Posts: 325
Threads: 5
Joined: Jun 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)
Posts: 37
Threads: 3
Joined: Aug 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