16.11.2010, 14:32
Дома: в файле gl_property.pwn, есть это:
замени на это
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
//printf( "DEBUG: Player %d pickedup Pickup %d Prop Id %d", playerid, pickupid );
lastPickup[playerid] = pickupid;
new id = propPickups[pickupid];
new pmsg[256];
if( properties[id][eType] > 0 ){
if(gLastPropertyEnterNotification[playerid] != id){
gLastPropertyEnterNotification[playerid] = id;
switch( properties[id][eType] ){
case TYPE_HOUSE:{
format(pmsg,256,"* House: type /enter to enter");
SendClientMessage( playerid, 0xFF55BBFF, pmsg );
return 1;
}
case TYPE_BUSINESS:{
format(pmsg,256,"* Business: type /enter to enter");
SendClientMessage( playerid, 0xFF55BBFF, pmsg );
return 1;
}
case TYPE_BANK:{
format(pmsg,256,"* Bank: type /enter to enter");
SendClientMessage( playerid, 0xFF55BBFF, pmsg );
return 1;
}
case TYPE_COP:{
format(pmsg,256,"* Police Station: type /enter to enter");
SendClientMessage( playerid, 0xFF55BBFF, pmsg );
return 1;
}
}
}
}
else SendClientMessage( playerid, 0xFF9900FF, "This property doesn't exist :S" );
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
PutPlayerInProperty( playerid, propPickups[pickupid] );
return 1;
}