ACTOR SYSTEM
#1

Hello.
I created /createactor CMD , for ingame actor creations, but i have one problem , my cmd is like this
PHP код:
 /createactor SKINID NAME 
Heres full code.
PHP код:
CMD:createactor(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < 10) return SendClientMessage(playeridCOLOR_GRAD1"   Tqven Ar Gaqvt Am Comandis Gamoyenebis Ufleba !");
    new 
Float:XikiFloat:YikiFloat:ZikiFloat:Aikiactorkaactorisstringi[120], infostring[120];
    if(
sscanf(params"ds[32]"params[0], params[1]))
    {
        
SendClientMessage(playeridCOLOR_GRAD1"{00C0FF}[BC:RP] Daxmareba: {FFFFFF} /createactor [SKINID] [NAME]");
        return 
1;
    }
    
GetPlayerPos(playeridXikiYiki,Ziki);
    
GetPlayerFacingAngle(playeridAiki);
    for(new 
1sizeof(aInfo); i++) { actorka i; }
    
aInfo[actorka][actID] = actorka;
    
aInfo[actorka][actName] = params[1];
    
aInfo[actorka][actSkin] = params[0];
    
aInfo[actorka][actX] = Xiki;
    
aInfo[actorka][actY] = Yiki;
    
aInfo[actorka][actZ] = Ziki;
    
aInfo[actorka][actA] = Aiki;
    
aInfo[actorka][actActori] = CreateActor(aInfo[actorka][actSkin],aInfo[actorka][actX],aInfo[actorka][actY],aInfo[actorka][actZ],aInfo[actorka][actA]);
    
format(actorisstringisizeof(actorisstringi), "{016CEE}%s {BFD5F0}(%d)"aInfo[actorka][actName],aInfo[actorka][actID]);
    
aInfo[actorka][actLabel] = Create3DTextLabel(actorisstringi0x008080FFaInfo[actorka][actX], aInfo[actorka][actY], aInfo[actorka][actZ]+1510.0,0,0);
    
format(infostringsizeof(infostring), "Shen Gaakete Actori. Monacemebi: SKINID: %d, NAME: %s, ID: %d",aInfo[actorka][actSkin],aInfo[actorka][actName],aInfo[actorka][actID]);
    
SendClientMessage(playeridCOLOR_GRAD1infostring);
    return 
1;

And Heres OUTPUT

Thanks.
Reply
#2

bump
Reply
#3

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)