SA-MP Forums Archive
3problems. - 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: 3problems. (/showthread.php?tid=180034)



3problems. - Gh0sT_ - 29.09.2010

hello all, im have 3problems with TDM server. :S

1. why WCM textdraw didnt showing, when i connect to server ( showing ) when spawning, and die pressing f4. - textdraw didnt showing ( inc - http://pastebin.com/stP4wH6y )
2. anim wont work. :/ ( onplayerrequest: http://pastebin.com/E8R22UdV )
3. godmode bugged?
// top of script
new GodMode [ MAX_PLAYERS ] ;
Quote:

public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 99999);
GodMode[playerid]=SetTimerEx("Rezimas",1000*10,true,"i",playerid);
// another shit

and
Quote:

public Rezimas(playerid)
{
SetPlayerHealth(playerid, 100);
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Funkcija „GodMode“ baigлsi!", "Gerai", "Uюdaryti");
KillTimer(GodMode[playerid]);
return 1;
}

thanks u


Re: 3problems. - Gh0sT_ - 30.09.2010

bump, help. :X


Re: 3problems. - Seven. - 30.09.2010

pawn Код:
GodMode[playerid]=SetTimerEx("Rezimas",1000*10,true,"i",playerid);
You are making the timer restart everytime.

pawn Код:
GodMode[playerid]=SetTimerEx("Rezimas",1000*10,false,"i",playerid);



Re: 3problems. - Gh0sT_ - 30.09.2010

thx.. 2probs leftD going to try fix with anim.


Re: 3problems. - Gh0sT_ - 30.09.2010

HELP. :/ sorry for this.


Re: 3problems. - Gh0sT_ - 01.10.2010

up, i know modetators will del this tread, but by the way. ^.^


Re: 3problems. - Finn - 01.10.2010

Try playing the animation AFTER setting the position.


Re: 3problems. - Gh0sT_ - 01.10.2010

Nop. Didnt working.


Re: 3problems. - [MWR]Blood - 01.10.2010

Probably you didn't notice that ApplyAnimation function has changed in 0.3b
https://sampwiki.blast.hk/wiki/ApplyAnimation


pawn Код:
GodMode[playerid]=SetTimerEx("Rezimas",1000,true,"i",playerid);//that should be under OnGameModeInit.
then you can put under onplayerspawn
pawn Код:
GodMode[playerid];
I'm not sure if that would work though.