17.05.2017, 00:08
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid... etc)
{
new pname[24];
GetPlayerName(playerid, pname, 24);
if( DVehicles[vehicleid][Owner][0] && strcmp(name,DVehicles[vehicleid][Owner]) ) // if vehicle is not yours
{
new string[60];
format(string,sizeof(string),"{FFFFFF}This vehicle belongs to %s", DVehicles[vehicleid][Owner]);
SendClientMessage(playerid, -1, string);
return 1;
}
return 1;
}