SetObjectMaterialText/SetObjectMaterial
#3

Quote:
Originally Posted by Drebin
Посмотреть сообщение
You should provide the code snipped you used to change the material (if you tried).
PHP код:
#define FILTERSCRIPT
#include <a_samp>
new obj;
new 
ind 0;
public 
OnFilterScriptInit()
{
    
obj CreateObject(7971150.688003540041715.081054687521.466999053955000);
    return 
1;
}
public 
OnPlayerCommandText(playerid,cmdtext[])
{
    if(!
strcmp(cmdtext,"/inc_ind",true))
    {
        
SetObjectMaterialText(obj,"TEST",ind,OBJECT_MATERIAL_SIZE_256x256,"Impact",32,false,0xFFFF0000,0xFFFFFFFF,1);
        new 
str[64];
        
format(str,sizeof(str),"Material index %d has been changed",ind);
        
SendClientMessage(playerid,-1,str);
        
ind++;
        return 
1;
    }
    return 
0;
}
public 
OnFilterScriptExit()
{
    
DestroyObject(obj);
    return 
1;

Object is near Zone 51. Try yourself...
Reply


Messages In This Thread
SetObjectMaterialText/SetObjectMaterial - by SDraw - 05.08.2012, 20:34
AW: SetObjectMaterialText/SetObjectMaterial - by Drebin - 06.08.2012, 11:01
Re: AW: SetObjectMaterialText/SetObjectMaterial - by SDraw - 06.08.2012, 11:26
Re: SetObjectMaterialText/SetObjectMaterial - by SDraw - 07.10.2012, 12:18
Re: SetObjectMaterialText/SetObjectMaterial - by Basssiiie - 07.10.2012, 13:17
Re: SetObjectMaterialText/SetObjectMaterial - by SDraw - 13.10.2012, 06:34

Forum Jump:


Users browsing this thread: 2 Guest(s)