[HELP] Admin Commands Bugged :(
#6

try this buddy


Код:
                   
                        tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /mute [playerid/PartOfName]");
				return 1;
			}
			new playa;
			playa = ReturnUser(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
					    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						if(PlayerInfo[playa][pMuted] == 0)
						{
							PlayerInfo[playa][pMuted] = 1;
							printf("AdmCmd: %s silenced %s",sendername,  giveplayer);
							format(string, sizeof(string), "AdmCmd: %s was silenced by    
                                                        %s",giveplayer ,sendername);
Reply


Messages In This Thread
[HELP] Admin Commands Bugged :( - by Larsey123IsMe - 17.12.2010, 23:38
Re: [HELP] Admin Commands Bugged :( - by case 1337: - 18.12.2010, 00:07
Re: [HELP] Admin Commands Bugged :( - by randomkid88 - 18.12.2010, 00:17
Re: [HELP] Admin Commands Bugged :( - by Steven82 - 18.12.2010, 00:45
Re: [HELP] Admin Commands Bugged :( - by Larsey123IsMe - 18.12.2010, 01:52
Re: [HELP] Admin Commands Bugged :( - by Merseyside - 18.12.2010, 05:13
Re: [HELP] Admin Commands Bugged :( - by Larsey123IsMe - 20.12.2010, 16:21
Re: [HELP] Admin Commands Bugged :( - by scottyishere - 20.12.2010, 16:30
Re: [HELP] Admin Commands Bugged :( - by yvoms - 27.12.2010, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)