Several cmds questions
#1

1.How to make when you write cmd, an animation starts.
I get warning in script line *ApplyAnimation(pla...* warning 202: number of arguments does not match definition
Код:
        if(!strcmp("/eat1", cmdtext,true))
    {
        if(!IsPlayerInRangeOfPoint(playerid, 2.0, 240.1804,1117.3380,1080.9922))return SendClientMessage(playerid, 0xFF9900AA,"You are not in /eat checkpoint.");
        {
        ApplyAnimation(playerid,"FOOD","EAT_Burger ",4.1,1,1,1,1,1,1);
        new Float:health;
		GetPlayerHealth(playerid,health);
		SetPlayerHealth(playerid, health+20);
        return 1;
        }
    }
I guess even then animation script is not right.

2.How to make when i write /countdown, it freezes only you, and i counts on screen from 5 to 0 and than unfreezes you.

Код:
    if(!strcmp("/countdown", cmdtext,true))
    {
        //script...
    }
3.This is complicated, so i hope i could explain to you in this way. I have no idea how to make script like that. -.-
if you write /steal, than cmd /sell works
if you didnt write /steal, than cmd /sell doesnt works
if you write /steal, than cmd /sell works, but you cant again /sell, than you must write again /steal to cmd /sell to work
Reply


Messages In This Thread
Several cmds questions - by nejc001 - 13.09.2010, 18:23
Re: Several cmds questions - by Mike_Peterson - 13.09.2010, 19:55
Re: Several cmds questions - by nejc001 - 14.09.2010, 13:56
Re: Several cmds questions - by nejc001 - 15.09.2010, 08:36
Re: Several cmds questions - by PinkFloydLover - 15.09.2010, 09:07
Re: Several cmds questions - by Mike_Peterson - 15.09.2010, 14:42
Re: Several cmds questions - by nejc001 - 15.09.2010, 15:43
Re: Several cmds questions - by nejc001 - 16.09.2010, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)