[Ajuda] comando /setworld
#8

E ai safchdion, tudo bem?
Sу queria deixar um code aqui, rs...
Код:
                new
                      cmd[256], idx;
                cmd = strtok(cmdtext, idx);
                if(strcmp(cmd, "/SetVirtualWorld", true) == 0)
		{
		    cmd = strtok(cmdtext, idx);
		    if(!strlen(cmd))
		    {
		        SendClientMessage(playerid, Vermelho, "[>]"BRANCO" Use /Set VirtualWorld [Player] [Virtual World]");
		        return 1;
		    }
		    new
		        id = strval(cmd);
			if(!IsPlayerConnected(id))
			{
			    SendClientMessage(playerid, Vermelho, "[>]"BRANCO" Player offline");
			    return 1;
			}
			cmd = strtok(cmdtext, idx);
		    if(!strlen(cmd))
		    {
		        SendClientMessage(playerid, Vermelho, "[>]"BRANCO" Use /Set VirtualWorld [Player] [Virtual World]");
		        return 1;
		    }
		    new
		        vw = strval(cmd);
			if(vw < 0)
			{
			    SendClientMessage(playerid, Vermelho, "[>]"BRANCO" O Virtual World deve ser maior ou igual a 0");
			    return 1;
			}
			SetPlayerVirtualWorld(id, vw);
			format(String, sizeof(String), " O administrador %s setou seu virtual world para %d", pName(playerid), vw);
			SendClientMessage(id, Amarelo, String);
			format(String, sizeof(String), "Vocк setou o virtual world do player %s para %d", pName(id), vw);
			SendClientMessage(playerid, Amarelo, String);
Abraзos
Reply


Messages In This Thread
comando /setworld - by safchdion - 25.07.2016, 04:06
Respuesta: comando /setworld - by SammyJ - 25.07.2016, 04:17
Re: Respuesta: comando /setworld - by safchdion - 25.07.2016, 04:20
Re: comando /setworld - by safchdion - 25.07.2016, 04:37
Re: comando /setworld - by RedMF - 25.07.2016, 05:41
Re: comando /setworld - by safchdion - 25.07.2016, 09:49
Re: comando /setworld - by RedMF - 25.07.2016, 16:39
Re: comando /setworld - by pPawn - 25.07.2016, 21:02
Re: comando /setworld - by safchdion - 25.07.2016, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)