pls help me in making this cmd
#1

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
Reply
#2

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

That's the right section.
Reply
#3

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
Reply
#4

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)
Reply
#5

Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)