26.07.2017, 11:18
Quote:
Alright, +REP to you guys. I will be able to try this weekend, if I find errors, I'll repost here. Thanks to both of ya'll.
|
Add SendClienMessage to it
So it will be :
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new id = GetDriverID(vehicleid);
if(IsPlayerInAnyVehicle(id) && !ispassenger && GetPlayerTeam(playerid) == GetPlayerTeam(id))
{
Clearplayeranimation(playerid);
Sendclientmessage(Playerid, COLOR_RED, "Don't Ninja Jack your teammates"); //You need to define COLOR_RED to 0xAA3333FF, Or just replace It with another color, Or just put the hex directly
}
return 1;
}