їComo realizo esto?
#6

їNo serнa?:
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);
                GetPlayerFacingAngle(playerid, a);
                GetXYInFrontOfPlayer(playerid, x, y, 10.0);
                Objeto[playerid] = CreateObject(1655, x, y, z, 0.0, 0.0, a);
            }
        }
    }
    if(strcmp("/Quitarobjeto", cmdtext, true, 10) == 0)
    {
        if(IsValidObject(Objeto[playerid])) DestroyObject(Objeto[playerid]);
    }
    return 1;
}
Me dices si te funciona.

Ademбs, no tengas pena, nadie empezу conociйndolo todo.
Mi primer script fue cuando tenнa 11 aсos, un menъ de 15 colores, y estaba orgulloso de eso .
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)