questions
#1

command questions:
1. /listweap [id]
this command should show the player's current weapons and ammo, something like this:
[playername]'s Weapons:
AK-47: 450; Tec9:600; Deagle:200

2. /setcmd [command] [for level 0-5]
this command should move a command for other admin level, for example:
before i type it:
in /acmds(account commands)
Admin(lvl3): (othercmds)/setcash(othercmds)
and after i type it:
Owner-Admin(lvl5): (othercmds)/setcash(othercmds)
not just move the words, i should change the admin level of a command:

Before:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/setcash", true) == 0)
	{
    if(PlayerInfo[playerid][Level] >= 3) {
		new tmp[256];
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))	{
			SendClientMessage(playerid, red, "USAGE: /setcash [playerid] [amount]");
			return 1;
			}
		new player1;
		player1 = strval(tmp);
		if(!IsPlayerConnected(player1) || player1 == INVALID_PLAYER_ID || (PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) )	{
		SendClientMessage(playerid,red,"ERROR: Player is not connected");
		return 1;	}
		tmp = strtok(cmdtext, idx);

		if(!strlen(tmp))	{
			SendClientMessage(playerid, red, "USAGE: /setcash [playerid] [amount]");
			return 1;	}

		new amount;
		amount = strval(tmp);
 		tmp = strtok(cmdtext, idx);

       	CMDMessageToAdmins(playerid,"/setcash");
		GetPlayerName(player1, playername, sizeof(playername));	GetPlayerName(playerid, adminname, sizeof(adminname));
		format(string,256,"Administrator %s has set your cash to $%d",adminname,amount);	if(player1 != playerid)	{	SendClientMessage(player1,blue,string); }
		format(string,256,"You have set %s's cash to $%d",playername,amount);   SendClientMessage(playerid,blue,string);
		ResetPlayerMoney(player1);	GivePlayerMoney(player1,amount);
		} else	{
		SendClientMessage(playerid,red,"ERROR: You need to be a Admin to do this!");   }
	return 1;	}
}
After:
Код:
if(PlayerInfo[playerid][Level] >= 5)
3. /onduty and /offduty
this command should make a admin's color to blue or purple or whatever...
and to show up for all players:
Admin: [admin's name] is on duty!
or when /offduty :
Admin: [admin's name] is off duty! and remove the purple marker from the map

questions:
1. How to remove all player markers from the map, just to leave the map blank
so nobody can locate you or somebody else..
2. when you type something it the chat, to don't show up for other players in the whole server
but just for the players around you(to make it more realistic)

thank you for your presence
Reply
#2

This is kinda a request, so i would suggest post it in the request thread.
Reply
#3

question 1: ShowPlayerMarkers(0); (( 0 = off 1 = global 2 = near player ))
question 2: LimitGlobalChatRadius(20.0); (( radius = how far the player can read the others text in this case 20))
Reply
#4

thanks people, and as you can see i'm new on the forum
Reply
#5

can you give me the link of the "request" thread?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)