[Ajuda] pergunta
#1

acredito ser so uma falha no testo tipo do /retirarvip id e nгo sai entгo fui no pawn e olhei e percebi que falta uma coisa no /vip seria oque tem no /socio:

Код:
if(strcmp(cmd, "/retirarsocio", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darsocio [id]");
				return true;
			}
			new para1;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			GetPlayerName(playerid, sendername, 256);
    		if(IsPlayerConnected(playerid))
	    	{
	        if(PlayerInfo[playerid][pAdmin] < 1341)
	    	{
				SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando.");
				return 1;
	    	}
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][pSocio] = 0;
						format(string, sizeof(string), "Seu Socio Foi retirado pelo adm %s", sendername);
						SendClientMessage(para1, COLOR_LIGHTBLUE, string);
						format(string, sizeof(string), "Vocк retirou o Socio de %s.", giveplayer);
						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
			}
		}
		return true;
	}
como editaria isso para vip em vez de socio? oque parece estar faltando o de vip!!!
tentei trocar as palavras mais nгo obtive sucesso
Reply


Messages In This Thread
pergunta - by AssasinoLM - 07.11.2013, 20:16
Re: pergunta - by PT - 07.11.2013, 20:20
Respuesta: Re: pergunta - by AssasinoLM - 07.11.2013, 20:54
Respuesta: pergunta - by DanDRT - 07.11.2013, 20:55
Respuesta: pergunta - by AssasinoLM - 07.11.2013, 21:02
Re: Respuesta: pergunta - by PT - 07.11.2013, 21:06
Respuesta: pergunta - by AssasinoLM - 07.11.2013, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)