I need that Commands!!! can?
#1

i need some commands please anyone help me in that
----------------------------------------------------------------
1-Hello, i want a cmd to heal and armour all player in one cmd
Exm : ---->/haall<---- heal armour all
----------------------------------------------------------------
2-i need a cmd to can see the ban player while playing
Exm: /banlist
----------------------------------------------------------------
3-and a cmd for change the name of players without sell cars
Exm: /rename
----------------------------------------------------------------
4-cmd to reconnect a player
Exm: /reconnectme or /reconnect id
----------------------------------------------------------------
5-cmd to sell a biz or house or car without useing the dialog /vmenu /bmenu /hmenu
Exm: /asellv /asellb /asellh

Ip:94.23.208.199:4019
Reply
#2

This isnt Requests section, visit the proper section to request scrips.
Reply
#3

where i can request that cmds?
Reply
#4

Wrong section but I can help u
Number 1
Код:
CCMD:setarmorall(playerid, params[])
{
    new armor;
    if(sscanf(params, "d", armor)) {
        SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /setarmorall [armor]");
        return 1;
    }

    if (PlayerInfo[playerid][pAdmin] >= 1337) {
        foreach(new i: Player)
		{
            SetPlayerArmor(i, armor);
        }
    }

    else {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
    }
    return 1;
}
This is set armor all, you can edit it to health
Number 2
Код:
CMD:setname(playerid, params[])
{
	new giveplayerid, string[128], name[MAX_PLAYER_NAME];
	if(sscanf(params, "us[24]", giveplayerid, name)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /setname [playerid] [newname]");

	if(IsPlayerConnected(giveplayerid))
	{
		if (PlayerInfo[playerid][pAdmin] >= 4)
		{
		    if(strlen(name) > MAX_PLAYER_NAME)
			{
				format(string, sizeof(string), "You can't select a name that's above %d characters.", MAX_PLAYER_NAME);
				return SendClientMessageEx(playerid, COLOR_WHITE, string);
			}
			new query[128], tmpName[MAX_PLAYER_NAME];
			mysql_escape_string(name, tmpName);
			if(strcmp(name, tmpName, false) == 0)
			{
	   			SetPVarString(playerid, "OnSetName", tmpName);

				format(query, sizeof(query), "SELECT `Username` FROM `accounts` WHERE `Username`='%s'", tmpName);
				mysql_function_query(MainPipeline, query, true, "OnSetName", "ii", playerid, giveplayerid);
			}
			else return SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid characters!");
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GRAD2, "You aren't authorised to use this command.");
		}
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD2, "No Such Player");
	}
	return 1;
}
Number 4:
https://sampforum.blast.hk/showthread.php?tid=253451
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)