їComo realizo esto?
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Objeto", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
            if(!IsValidObject(Objeto[playerid]))
            {
              new
                Float:x,
                Float:y,
                Float:z,
                Float:a;

                GetPlayerPos(playerid, x, y, z); //<---- mi error no sй que funcion va alli
                GetPlayerFacingAngle(GetPlayerVehicleID(playerid), a);
                GetXYInfrontOfPlayer(playerid, x, y, 10.0);
                Objeto[playerid] = CreateObject(1655, x, y, z, 0.0, 0.0, a);
               
            }
        }
    }
    return 1;
}
        if (strcmp("/Quitarobjeto", cmdtext, true, 10) == 0)
        {
         if(IsValidObject(Objeto[playerid])) DestroyObject(Objeto[playerid]);
         }
        return 1;
    }
    return 0;
}
їPorquй nos vamos a burlar de ti?
Reply


Messages In This Thread
їComo realizo esto? - by JaimitoxD - 10.06.2013, 00:18
Respuesta: їComo realizo esto? - by JustBored - 10.06.2013, 00:27
Re: їComo realizo esto? - by JaimitoxD - 10.06.2013, 01:20
Respuesta: їComo realizo esto? - by JustBored - 10.06.2013, 01:24
Re: їComo realizo esto? - by JaimitoxD - 10.06.2013, 01:43
Respuesta: їComo realizo esto? - by EduGTA - 10.06.2013, 01:47
Re: Respuesta: їComo realizo esto? - by JaimitoxD - 10.06.2013, 01:54
Respuesta: їComo realizo esto? - by OTACON - 10.06.2013, 11:37
Respuesta: їComo realizo esto? - by JaimitoxD - 10.06.2013, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)