19.05.2017, 18:05
(
Последний раз редактировалось fireranger11; 20.05.2017 в 10:01.
)
Server crashes whenever i type hns command
Код:
CMD:hns( playerid, params[ ] ) { if ( IsPlayerInAnyVehicle( playerid ) ) return TD_MSG( playerid, 3000, "~r~~h~Please exit the vehicle!"); if (Iter_Count(HNS_Rank) > 20) return SendClientMessage(playerid,COLOR_RED,""RED"Hide'N'Seek "WHITE"is full!"); if ( HNS_StartedEx == 1 ) return SendClientMessage(playerid,COLOR_RED,""RED"Hide'N'Seek "WHITE"has started!"); PlayerInfo[ playerid ][ ActionID ] = 9; if ( HNS_Started == 0 ) { SavePlayerCoords(playerid); PlayerInfo[ playerid ][ inMini ] = 1; Iter_Add(HNS_Rank, playerid); Iter_Add(Var_Seeker, playerid); HNS_Started = 1; HNS_Count = 60; GameTextForAll( "~g~~h~Hide'N'Seek ~w~minigame starting in ~r~60 ~w~seconds! ~g~~h~/hns ~w~to join!", 3000, 4 ); SetTimerEx( "StartSeek", 1000, 0, "i", playerid ); TogglePlayerControllable( playerid, false ); ResetPlayerWeapons(playerid); GivePlayerWeapon( playerid, 38, 99999 ); SetPlayerInterior( playerid, 2 ); SetPlayerPos( playerid, 2567.6086, -1294.1406, 1063.2520 ); SetPlayerFacingAngle( playerid, 6.9141 ); SetCameraBehindPlayer( playerid ); return ( 1 ); } else { SavePlayerCoords(playerid); Iter_Add(HNS_Rank, playerid); TD_MSG( playerid, 3000, "~w~Use ~r~~h~/hideme ~w~when you're hidden!" ); ResetPlayerWeapons( playerid ); SetPlayerInterior( playerid, 2 ); SetPlayerPos( playerid, 2559.0579, -1297.1764, 1060.9844 ); SetPlayerFacingAngle( playerid, 263.8967 ); } new string3[128]; format(string3,sizeof string3,"~R~[MG] - ~w~%s ~W~has teleported to(/HNS)!",GetName( playerid )); SendBoxMsg(string3); return ( 1 ); }