[Ajuda] /gov tempo
#1

Se me ajudarem ficarei agradecido
aki eu simplesmente queria por aki um determinado tempo no /gov prara que o playes tiversse que esperar pra mandar novamnete tipo uns 3 minutos

Код:
	if(strcmp(cmd, "/governo", true) == 0 || strcmp(cmd, "/gov", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(!IsACop(playerid))
			{
			    SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й um policial !");
			    return 1;
			}
			if(PlayerInfo[playerid][pRank] < 5)
			{
			    SendClientMessage(playerid, COLOR_GREY, "   Vocк precisar ter cargo maior ou igual а 5 !");
			    return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USO: (/gov)erno [texto]");
				return 1;
			}
			SendClientMessageToAll(COLOR_WHITE, "|___________ Notнcias governamentais ___________|");
			for(new luplay=0;luplay<6;luplay++){
			if(strfind(result, IP[luplay], true) != -1){result = "PКGO EM FRБGRANTE!!!Jogador tentando divulgar algum IP.";}}
			if(PlayerInfo[playerid][pMember] == 7)
			{
			  format(string, sizeof(string), "Polнtico %s: %s", sendername, result);
			}
			else if(PlayerInfo[playerid][pMember] == 21)
			{
			  format(string, sizeof(string), "Oficial BOPE %s: %s", sendername, result);
			}
			else if(PlayerInfo[playerid][pMember] == 14)
			{
			  format(string, sizeof(string), "Oficial PRF %s: %s", sendername, result);
			}
			else if(PlayerInfo[playerid][pMember] == 3)
			{
			  format(string, sizeof(string), "Forзas Armadas %s: %s", sendername, result);
			}
			else if(PlayerInfo[playerid][pMember] == 24)
			{
			  format(string, sizeof(string), "Bombeiro %s: %s", sendername, result);
			}
			else
			{
			  format(string, sizeof(string), "Oficial %s: %s", sendername, result);
			}
			SendClientMessageToAll(COLOR_DBLUE, string);
		}
		return 1;
	}
Reply


Messages In This Thread
[Ajuda] /gov tempo - by vitorpedro - 15.10.2011, 05:07
Re: [Ajuda] /gov tempo - by Cristhian - 15.10.2011, 05:11
Re: [Ajuda] /gov tempo - by iansinho - 15.10.2011, 05:21
Re: [Ajuda] /gov tempo - by Lуs - 15.10.2011, 05:22
Re: [Ajuda] /gov tempo - by Cristhian - 15.10.2011, 05:24

Forum Jump:


Users browsing this thread: 1 Guest(s)