[Pedido] Comando /CreateObject
#5

Й Tipo Esse Mas Esse N Permite Mover O Obejeto E Eu Queria Em Cmd
pawn Код:
dcmd_object(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid)) {
        if(!strlen(params)) return SendClientMessage(playerid,red,"USAGE: /object [object id]");
        new object = strval(params), string[128], Float:x, Float:y, Float:z, Float:a;
        CMDMessageToAdmins(playerid,"OBJECT");
        GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, a);
        x += (3 * floatsin(-a, degrees));
        y += (3 * floatcos(-a, degrees));
        CreateObject(object, x, y, z, 0.0, 0.0, a);
        format(string, sizeof(string), "CreateObject(%d, %0.2f, %0.2f, %0.2f, 0.00, 0.00, %0.2f);", object, x, y, z, a);
        SaveToFile("Objects",string);
        format(string, sizeof(string), "You Have Created Object %d, at %0.2f, %0.2f, %0.2f Angle %0.2f", object, x, y, z, a);
        return SendClientMessage(playerid,yellow, string);
    } else return SendClientMessage(playerid,red,"ERRO: Vocк nгo tem nнvel alto suficiente para usar este comando");
}
Reply


Messages In This Thread
Comando /CreateObject - by robertsz - 26.02.2013, 02:01
Re: Comando /CreateObject - by robertsz - 26.02.2013, 02:14
Re: Comando /CreateObject - by Josma_cmd - 26.02.2013, 02:20
Re: Comando /CreateObject - by robertsz - 26.02.2013, 02:26
Re: Comando /CreateObject - by robertsz - 26.02.2013, 02:30
Re: Comando /CreateObject - by Delete_ - 26.02.2013, 02:36
Re: Comando /CreateObject - by robertsz - 26.02.2013, 02:39
Re: Comando /CreateObject - by Delete_ - 26.02.2013, 02:41
Re: Comando /CreateObject - by robertsz - 26.02.2013, 02:44
Re: Comando /CreateObject - by Delete_ - 26.02.2013, 02:46

Forum Jump:


Users browsing this thread: 1 Guest(s)