09.06.2009, 11:22
i did this code :
and when i do /tryup , when i am in crack, and it sucsess , it dosent doing nothing !
Quote:
if(strcmp(cmd, "/tryup", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:HP; if(GetPlayerHealth(playerid,HP) < 80) { new rand = random(sizeof(TriesOptions)); format(string, sizeof(string), "** %s tries to stand up, and %s.", GetPlayerNameInString(playerid), TriesOptions[rand][0]); ProxDetector(10.0, playerid, string, 0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD 32AA); if(strfind(TriesOptions[rand][0],"sucsess",true)==true) { TogglePlayerControllable(playerid,1); ClearAnimations(playerid); } else if(strfind(TriesOptions[rand][0],"fails",true)==true) { } } } return 1; } |