Throw Player away
#1

Hello, how can i make a command like /spartakick that when i type it the player fly some meters away?
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerVelocity

I believe this may be what you're looking for.
Reply
#3

Something like..
pawn Код:
CMD:spartakick(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >=1)
{
new PosX, PosY, PosZ;
GetPlayerVelocity(player2, PosX, PosY, PosZ);
SetPlayerVelocity(player2, PosX+1, PosY+1, PosZ+1);
}
else
{
SendClientMessage(playerid, -1, "You don't have the authority to use this command!");
return 1;
}
return 1;
}
Something like that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)