SetPlayerVelocity problem - 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)
+--- Thread: SetPlayerVelocity problem (
/showthread.php?tid=397152)
SetPlayerVelocity problem -
xFrostyzz - 03.12.2012
Hey guys,
I'm just doing a little survival / zombie game mode scripting, but I already just my first problem. :/
I want a zombie is shot by a man, it runs slower / is repelled.
Have all been resolved now so:
Код:
if (issuerid! = INVALID_PLAYER_ID) {
if (GetPlayerTeam (playerid) == zombies GetPlayerTeam && (issuerid) == human) {
SetPlayerVelocity (playerid, -0.3,0.0,0.0);
}}
Problem here is that it only works if the shots come from the east.
In all other cases the zombie to the side (north and south) is pushed to a range or even suppressed (west).
Does anyone have a solution to my problem?
Sincerely yours
Frosty
P.S. Sorry for my bad english, im from germany. :'D