![]() |
Bad Commands
Stefan:
there are ton of commands that still dont work... commands such as setsword something as simple as that... a command most RP servers use doesnt work clientside or serverside please fix. |
Re: Bad Commands
Quote:
|
Re: Bad Commands
Quote:
|
Re: Re: Bad Commands
Quote:
And, I suggest, you just rescript it, lazy person :) |
Re: Re: Re: Bad Commands
Quote:
|
Re: Re: Re: Re: Re: Bad Commands
Quote:
*feels his IQ lowering after seeing the above post* *sighs* |
Re: Re: Re: Bad Commands
Quote:
|
Re: Re: Re: Re: Re: Bad Commands
Quote:
I mean I agree 3048%. |
Hey mod people, would it be okay to post a rescripted sword here?
|
Hint to the poor soul who started this:
Use setplayerprop. |
Re: Re: Re: Re: Re: Bad Commands
Quote:
|
and not for the swordimg..... for the sword power!
|
setplayerprop #1,swordimage;
|
And if you want to get really fancy and change the swordpower, you can use the playerswordpower variable.
|
i did rescript it see
//#CLIENTSIDE if (created||initialized){ timeout=0.05; setstring clientr.swordimg,#1(); setstring client.swordpower,#v(playerswordpower); } if (keypressed) { if (strequals(#p(1),1)) { triggeraction playerx+1.5+vecx(playerdir)*2,playery+2+vecy(playe rdir)*2,swordhit,#a; freezeplayer 0.25; setani sword2,clientr.swordimg; } timeout=0.1; } if (actionswordhit) { if (!strequals(#m,dead)){ freezeplayer .3; setani hurt,; hearts=strtofloat(#I(client.hp,0))-strtofloat(#s(client.swordpower)); replacestring client.hp,0,#v(hearts); } } OR i have this one //#CLIENTSIDE if(created){ this.firing=0; } if (keydown2(keycode(g),true)){ this.firing=1; this.p = players[0].swordpower; this.q = this.p; play sword.wav; for (this.i=9;this.i<14; this.i++){ freezeplayer 1; players[0].sprite=this.i; testhurt(); sleep .05; } freezeplayer 0; this.firing=0; } function testhurt() for (this.a=1;this.a<playerscount;this.a++) {if (abs(players[0].x-players[this.a].x)<3 && abs(players[0].y-players[this.a].y)<3) hitplayer this.a,this.q,players[this.a].x,players[this.a].y;} for (this.b=0;this.b<compuscount;this.b++) {if (abs(compus[0].x-compus[this.b].x)<3 && abs(compus[0].y-compus[this.b].y)<3) hitcompu this.b,this.q,compus[this.b].x,compus[this.b].y;} return; all iam saing is that if he going to make commands they should work x_x |
All times are GMT +2. The time now is 05:30 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.