SA-MP Forums Archive
Help Again .. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Again .. (/showthread.php?tid=81249)



Help Again .. - eden78 - 09.06.2009

i did this code :
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;
}

and when i do /tryup , when i am in crack, and it sucsess , it dosent doing nothing !


Re: Help Again .. - eden78 - 09.06.2009

fixed !! working !! bye


Re: Help Again .. - MPKaboose - 09.06.2009

ah LOL I was just working on that