15.10.2009, 14:49
Hey, I can't figure out how to do this properly. When you enter vehicle 573, a GameTextForAll() should pop up. Here is the code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (IsPlayerInVehicle(playerid, 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;
}