[Ajuda] Comando /acurar
#1

Boas pessoal, estou com um problema no meu comando, й o seguinte, eu sou administrador faзo o comando /acurar e diz " Nгo йs administrador " e eu sou administrador. Agradecia ajuda ai.. Obrigado.

Код:
	    if(strcmp(cmd, "/acurar", true) == 0)
		{
		    if(IsPlayerConnected(playerid))
		    {
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_LIGHTORANGE, "[Comando:] /acurar [playerid] ");
					return 1;
				}
				new playa;
				playa = ReturnUser(tmp);
				tmp = strtok(cmdtext, idx);
				if (PlayerInfo[playerid][crtrvbcAdmin] >= 1)
                if (PlayerInfo[playerid][crtrvbcGm] >= 1)
				{
				    if(IsPlayerConnected(playa))
				    {
				        if(playa != INVALID_PLAYER_ID)
				        {
				            icurar(playa);
							format(string, sizeof(string), " Foste curado por %s.",GetPlayerNameEx(playerid));
							SendClientMessage(playa,COLOR_WHITE,string);
							format(string, sizeof(string), " Curaste %s.",GetPlayerNameEx(playa));
							SendClientMessage(playerid,COLOR_WHITE,string);
						}
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_WHITE, "ERRO: Nao йs administrador.");
				}
			}
   return 1;
		}
Reply


Messages In This Thread
[Ajuda] Comando /acurar - by JuniorPT - 13.02.2012, 20:01
Re: [Ajuda] Comando /acurar - by Hard` - 13.02.2012, 20:06
Re: [Ajuda] Comando /acurar - by JuniorPT - 13.02.2012, 20:08
Re: [Ajuda] Comando /acurar - by Hard` - 13.02.2012, 20:11
Re: [Ajuda] Comando /acurar - by zbt - 13.02.2012, 23:52
Re: [Ajuda] Comando /acurar - by JuniorPT - 14.02.2012, 17:32
Re: [Ajuda] Comando /acurar - by Hard` - 14.02.2012, 17:40
Re: [Ajuda] Comando /acurar - by JuniorPT - 15.02.2012, 18:09
Re: [Ajuda] Comando /acurar - by marcelodell - 15.02.2012, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)