[Ayuda] /encontrarveh
#1

Hola, mirar tengo un problema, tengo un comando de encontrar vehнculos, pero claro, me pire que ponga /encontrarveh y la matrнcula del vehнculo, pero me gustarнa que fuese de la siguiente manera, /encontrarveh [ID del jugador] que pusieses el comando y en vez de la matrнcula pondrнas la ID del jugador y apareceria su coche en el mapa.
Gracias.


Comando
Код:
if(strcmp(cmd, "/encontrarveh", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    if(!ESI(playerid)) return Message(playerid, COLOR_GRAD2, "No perteneces a esta organizaciуn!");
		    {
		    }
		    if(PlayerOnMission[playerid] > 0)
			{
				SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
			    return 1;
			}
			if(UsedFind[playerid] != 0 && PlayerInfo[playerid][pDetSkill] < 401)
			{
			    SendClientMessage(playerid, COLOR_GREY, "El Satelite ESI se encuentra cargando archivos espera 1 minuto!");
			    return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USO: /EncontrarVeh [ID]");
				return 1;
			}
			new Float:plocx,Float:plocy,Float:plocz;
			new plo;
			plo = strval(tmp);
			if(plo < 1 || plo > TOTAL_VEH) { SendClientMessage(playerid, COLOR_GREY, "ID Erroneo!"); return 1; }
			{
				GetVehiclePos(plo, plocx, plocy, plocz);
				SetPlayerCheckpoint(playerid,plocx,plocy, plocz, 6.0);
				PlayerInfo[playerid][pDetSkill] ++;
				UsedFind[playerid] = 1;
			}
		}
		return 1;
	}
Reply


Messages In This Thread
[Ayuda] /encontrarveh - by ermakiloko - 07.08.2011, 04:05
Respuesta: [Ayuda] /encontrarveh - by M1tux3r - 07.08.2011, 15:48
Re: [Ayuda] /encontrarveh - by ermakiloko - 07.08.2011, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)