Object
#1

This is toy editor and i want to add it into my gamemode. Where in my gamemode i going to add that and can someone add that to ZCMD?

Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerAttachedObject(playerid, 0, 1337, 2);
}
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/edit", true))
    {
        EditAttachedObject(playerid, 0);
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You now edit your attached object on index slot 0!");
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Object - by raamiix - 24.03.2013, 08:57
Re: Object - by LeeXian99 - 24.03.2013, 09:00
Re: Object - by Mystique - 24.03.2013, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)