[AJUDA] /daradmin (ZCMD -SSCANF)
#7

Tem esse meu tb

Corrigindo : que peguei aqui no forum um tempгo atras Sorry

Код:
	if(strcmp(cmd, "/daradmin", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /daradmin [ID/ParteDoNick] [level(1-4000)]");
				return 1;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			level = strval(tmp);
			if(PlayerInfo[playerid][pAdmin] == 6357)
			{
			  if(IsPlayerConnected(para1))
			  {
			    if(para1 != INVALID_PLAYER_ID)
			    {
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][pAdmin] = level;
						printf("AdmCmd: Um Fundador promoveu %s para Administrador Level %d .", sendername, giveplayer, level);
						format(string, sizeof(string), "Vocк foi promovido a Administrador Level %d por Admin Bot", level, sendername);
						SendClientMessage(para1, COLOR_YELLOW, string);
						format(string, sizeof(string), "Vocк promoveu %s para Administrador Level %d .", giveplayer,level);
						SendClientMessage(playerid, COLOR_YELLOW, string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "  vocк nгo estб autorizado a usar esse comando !");
			}
		}
	 return 1;
	}
Admin lv 6357 voce ajusta seu nivel de admin ai so o nivel de admin que pode dar admin
Reply


Messages In This Thread
[AJUDA] /daradmin (ZCMD -SSCANF) - by [N]inja - 12.10.2011, 00:26
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [O.z]Caroline - 12.10.2011, 00:28
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [N]inja - 12.10.2011, 00:31
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by WLSF - 12.10.2011, 00:31
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [O.z]Caroline - 12.10.2011, 00:32
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by [N]inja - 12.10.2011, 00:35
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by IILeonII - 12.10.2011, 00:35
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by WLSF - 12.10.2011, 00:36
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by IILeonII - 12.10.2011, 00:41
Re: [AJUDA] /daradmin (ZCMD -SSCANF) - by WLSF - 12.10.2011, 00:43

Forum Jump:


Users browsing this thread: 3 Guest(s)