14.08.2012, 17:49
Hi everybody, i have that ironman cmd, but it doesn't fly )
pawn Код:
on top:
new
bool:flying[MAX_PLAYERS],
Javelin[MAX_PLAYERS][2],
Float:JavPos[MAX_PLAYERS][3];
on player command text:
if(!strcmp(cmdtext, "/ironman", true))
{
if((flying[playerid] = !flying[playerid]))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerHealth(playerid, 1000000000.0);
SetTimerEx("IronMan", 100, 0, "d", playerid);
SetTimerEx("DestroyMe", 500, 0, "d", CreateObject(2780, x, y, z - 3.0, 0.0, 0.0, 0.0));
ShowPlayerDialog(playerid,91,DIALOG_STYLE_MSGBOX,"{6EF83C}Ironman", "{FF00EA}Ironman: {6EF83C}ON \n{FFFFFF}Scrie {6EF83C}/ironman {FFFFFF}ca sa-l dezactivezi.", "Ok", "" );
}
else
SetPlayerHealth(playerid, 100.0);
return 1;
}