13.07.2013, 16:42
Hello, how can i make a command like /spartakick that when i type it the player fly some meters away?
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;
}