14.07.2011, 03:16
TY sooo much guys,it compiled and everything but its doing both teh msg and the command 
dcmd_ad (playerid, params[])
{
#pragma unused params
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 100)
{
SetPlayerHealth(playerid, health +100);
SendClientMessage(playerid, 0x00FF00AA, "Adrenaline pill has been utilised");
if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount()) return SendClientMessage(playerid,0xFF0000AA,"Please Wait Before Using Another Adrenaline Pill.");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+6000 0);
}
return 1;
}

dcmd_ad (playerid, params[])
{
#pragma unused params
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 100)
{
SetPlayerHealth(playerid, health +100);
SendClientMessage(playerid, 0x00FF00AA, "Adrenaline pill has been utilised");
if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount()) return SendClientMessage(playerid,0xFF0000AA,"Please Wait Before Using Another Adrenaline Pill.");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+6000 0);
}
return 1;
}