06.06.2014, 18:16
I use this under OnPlayerGiveDamage
But people can ram each others easily
pawn Код:
if(weaponid == 49)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(damagedid,x,y,z);
SetPlayerPos(damagedid,x,y,z+2);
format(string,sizeof(string),"ANTI RAM has teleported %s(%d) to the car roof.",PlayerName(damagedid),damagedid);
SendClientMessageToAll(COLOR_ADMIN,string);
GameTextForPlayer(playerid, "~r~Do not Car Park and Ramming!", 1000, 5);
}