Wysłany: 2015-01-22, 18:55
mrmay4141
KOR Gaming Innovator
Wiek: 28 Na forum: 4861 dni Posty: 86
Nick w MP: Sexyvise
Piwa : 4
Hej. Podam kod do gamemoda ,, race ". Chcia?by ktos przerobi? go tak aby po wpisaniu zadzia?a? dopiero gdy wszyscy gracze b?d? martwi.
addCommandHandler ( 'redo' ,
function( player , command , value )
if isPlayerInACLGroup ( player , g_GameOptions . admingroup ) then
local currentMap = exports . mapmanager : getRunningGamemodeMap ()
if currentMap then
outputChatBox ( "#00BAFF[REDO] #FFFFFFMap restarted by " .. getPlayerNametagText ( player ), g_Root , 0 , 240 , 0 , true )
if not exports . mapmanager : changeGamemodeMap ( currentMap , nil , true ) then
problemChangingMap ()
end
else
outputRace ( "You can't restart the map because no map is running" , player )
end
else
outputRace ( "You are not an Admin" , player )
end
end
)
Daje piwko nawet za dobre ch?ci.
Wysłany: 2015-01-25, 01:21
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
addCommandHandler ( 'redo' ,
function( player , command , value )
if isPlayerInACLGroup ( player , g_GameOptions . admingroup ) then
if getActivePlayerCount () <= 1 then
outputChatBox ( "#00BAFF[REDO] #FFFFFFMap restarted by " .. getPlayerNametagText ( player ), g_Root , 0 , 240 , 0 , true )
if not exports . mapmanager : changeGamemodeMap ( currentMap , nil , true ) then
problemChangingMap ()
end
else
outputRace ( "You can't restart the map because map is still running" , player )
end
else
outputRace ( "You are not an Admin" , player )
end
end
)
Tagi: [race]system :: redo
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: