SetPlayerVelocity problem
#1

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)