15.10.2009, 15:18
if the model of the vehicle is 573
so:
if the ID of the vehicle 573
so:
so:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (GetVehicleModel(vehicleid) == 573)
{
new name[ 24 ], string[ 64 ];
GetPlayerName( playerid, name, 24 );
format( string, sizeof(string), "~w~%s has stolen the car!", name );
GameTextForAll( string, 5000, 3 );
}
return 1;
}
so:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (vehicleid == 573)
{
new name[ 24 ], string[ 64 ];
GetPlayerName( playerid, name, 24 );
format( string, sizeof(string), "~w~%s has stolen the car!", name );
GameTextForAll( string, 5000, 3 );
}
return 1;
}

