Problema com COmando PUTPLAYERINVEHICLE
#1

Pessoal criei este CMD para ADMs pegarem carros rбpidamente a ideia e de que a rotina criasse um carro de acordo co a id passado e colocasse o player dentro do carro mas o problema й que le nгo coloca dentro do carro ele sу cria olha sу a rotina:

Код:
if(strcmp(cmd, "/getcar", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
   			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /getcar [carid]");
				return true;
			}
			new plo;
			new playa;
			playa = ReturnUser(tmp);
			plo  = strval(tmp);
			new Float:plocx,Float:plocy,Float:plocz;
			if (PlayerInfo[playerid][pAdmin] >= 3)
			{
				new tmpVehID;
				GetPlayerPos(playerid, plocx, plocy, plocz);
			    tmpVehID = AddStaticVehicle(plo,plocx,plocy+4, plocz,0,1);
			    PutPlayerInVehicle(playa, tmpVehID, SeatDriveMod);
			    return true;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
			}
		}
		return true;
	}
Reply


Messages In This Thread
Problema com COmando PUTPLAYERINVEHICLE - by mafelis - 16.12.2010, 11:34
Re: Problema com COmando PUTPLAYERINVEHICLE - by CyNiC - 16.12.2010, 11:42
Re: Problema com COmando PUTPLAYERINVEHICLE - by mafelis - 16.12.2010, 12:00
Re: Problema com COmando PUTPLAYERINVEHICLE - by rjjj - 16.12.2010, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)