13.09.2010, 18:23
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
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.
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
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; } }
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... }
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