[Pedido] Comando /CreateObject
#8

PHP код:
CMD:object(playerid,params[])
{
    if(!
strlen(params)) return SendClientMessage(playerid,red,"USAGE: /object [object id]");
    new 
object strval(params), string[128], Float:xFloat:yFloat:zFloat:a;
    
CMDMessageToAdmins(playerid,"OBJECT");
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playerida);
    
+= (floatsin(-adegrees));
    
+= (floatcos(-adegrees));
    
CreateObject(objectxyz0.00.0a);
    
format(stringsizeof(string), "CreateObject(%d, %0.2f, %0.2f, %0.2f, 0.00, 0.00, %0.2f);"objectxyza);
    
SaveToFile("Objects",string);
    
format(stringsizeof(string), "You Have Created Object %d, at %0.2f, %0.2f, %0.2f Angle %0.2f"objectxyza);
    return 
SendClientMessage(playerid,yellowstring);

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: 2 Guest(s)