hook remove buildings

This commit is contained in:
Lorenc Pekaj 2019-01-02 01:13:48 +11:00
parent 0ccc26dbe4
commit bd9168eb76
2 changed files with 7 additions and 6 deletions

View File

@ -1,11 +1,15 @@
/* /*
* Irresistible Gaming 2018 * Irresistible Gaming 2018
* Developed by Lorenc * Developed by Lorenc
* Module: static_cnr\removed_buildings.inc * Module: cnr\static\removed_buildings.pwn
* Purpose: removed buildings data * Purpose: removed buildings data
*/ */
stock removeExcessiveBuildings( playerid ) /* ** Includes ** */
#include < YSI\y_hooks >
/* ** Functions ** */
hook OnPlayerConnect( playerid )
{ {
RemoveBuildingForPlayer( playerid, 10149, -1696.0245, 1034.0981, 45.2109, 15.0 ); RemoveBuildingForPlayer( playerid, 10149, -1696.0245, 1034.0981, 45.2109, 15.0 );
RemoveBuildingForPlayer( playerid, 10553, -2336.9297, -105.2891, 37.0000, 0.25 ); RemoveBuildingForPlayer( playerid, 10553, -2336.9297, -105.2891, 37.0000, 0.25 );

View File

@ -525,9 +525,6 @@ public OnPlayerConnect( playerid )
SetPlayerColor( playerid, COLOR_GREY ); SetPlayerColor( playerid, COLOR_GREY );
ResetPlayerCash( playerid ); ResetPlayerCash( playerid );
// Create player textdraws and remove buildings
removeExcessiveBuildings( playerid );
// Reset some variables // Reset some variables
p_Spawned { playerid } = false; p_Spawned { playerid } = false;
p_GangID [ playerid ] = INVALID_GANG_ID; p_GangID [ playerid ] = INVALID_GANG_ID;