hook remove buildings
This commit is contained in:
parent
0ccc26dbe4
commit
bd9168eb76
@ -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 );
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user