15.11.2013, 10:10
how i make /minigun to be avalaible after 5 persons typed /minigun
Quote:
CMD:minigun( playerid, params[ ] ) { Iter_Add( PlayerInMinigun, playerid ); /*foreach( Player, i ) FormatMSG( i, ~1, "[JOIN] {%06x}%s(%i) "GRI"just joined Minigun [/minigun] (Players: %d)", GetPlayerColor( playerid ) >>> 8, PlayerName( playerid ), playerid, Iter_Count(PlayerInMinigun) ); */ gsString[ 0 ] = EOS; format( gsString, sizeof( gsString ), "~r~~h~~h~DM: ~r~~h~%s(%d) ~w~~h~has joined ~g~~h~Minigun ~y~(Players: %d)", PlayerName( playerid ), playerid, Iter_Count(PlayerInMinigun) ); ShowOnTextDraw( gsString ); DMTele( playerid, "Minigun", "minigun", 1410.5425, 2176.3142, 12.0156, 0, 0, 38, 0, 0, 0, 0, 9999, 0, 0, 0, 0, 100, "/mini" ); SetPlayerRandomSpawnMinigun( playerid ); return PlayerInfo[ playerid ][ InMinigun ] = ( 1 ); } |