[Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server RP)
#10

Hay dнos, quй pena es verdad lo quй dijo este, eso es matematica de 1є grado xdd , pregunto sin pensar aveces xd, Oнgan espero quй no le moleste quй haga otra pregunta en el mismo post es quй tengo una duda...

Yo quiero hacer quй cuando yo /jail a alguнen aparesca en la pantalla los minutos quй lo metн ya lo intente pero nada, todavнa estoy siguiendo intentando aver sн me lo fбcilitan

Asн lo tengo yo y no funca:

Код:
if(strcmp(cmd, "/jail", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {

			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)] (reason)");
				return 1;
			}
			new playa;
			new length = strlen(cmdtext);
			new money;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			money = strval(tmp);
			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, "USA: /jail [ID/Nombre] [Tiempo(minutos)] (Razon)");
				return 1;
			}
			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
                        PlayerInfo[playa][pJailTime] = money*60;
				        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* Castigaste a %s. Razon: %s", giveplayer, (result));
						SendClientMessage(playerid, COLOR_LIGHTRED, string);
						format(string, sizeof(string), "* Fuiste castigado por Admin %s, Razon: %s", sendername, (result));
						SendClientMessage(playa, COLOR_LIGHTRED, string);
						format(string, sizeof(string), "AdmCmd: %s fue enviado a JailAdmin por el Adm: %s, Por %s minutos Razуn: %s", giveplayer, sendername, PlayerInfo[playa][pJailTime], (result));
						SendClientMessageToAll(COLOR_NEWS,string);
						ResetPlayerWeapons(playa);
						WantedPoints[playa] = 0;
						PlayerInfo[playa][pJailed] = 1;
						SetPlayerInterior(playa, 6);
						SetPlayerPos(playa, 264.6288,77.5742,1001.0391);
						format(string, sizeof(string), "Estas castigado por %d minutos.", money);
						SendClientMessage(playa, COLOR_LIGHTBLUE, string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Usted no esta autorizado para usar este comando!");
			}
		}
		return 1;
	}
Puse: PlayerInfo[playa][pJailTime] Trate de intentarlo xd, haber sн ъstedes saben fбcilitarlo.
Reply


Messages In This Thread
[Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server RP) - by ronaldsojo - 17.08.2010, 22:10
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by Wesk3R - 17.08.2010, 22:12
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by TheChaoz - 17.08.2010, 22:17
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by ronaldsojo - 17.08.2010, 22:49
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by Wesk3R - 17.08.2010, 22:56
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by ronaldsojo - 17.08.2010, 23:07
Respuesta: Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1 - by xenowort - 17.08.2010, 23:21
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by ⓕⓞⓞⓖⓨ! - 17.08.2010, 23:25
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by TheChaoz - 18.08.2010, 00:10
Re: [Ayuda] Formatos de admнn, creo quй no me funcionan у no se usarlos (if (PlayerInfo[playerid][pAdmin] < 1)) (Server - by ronaldsojo - 18.08.2010, 00:27

Forum Jump:


Users browsing this thread: 6 Guest(s)