1
Scripting MTA [Lua Center] / Re : Ecran noir lors de la connexion en local
« le: 26 Décembre 2015, 01:18:11 »
Je comprend vraiment pas, ça fonctionne maintenant... J'ai rien changé entre temps.
Cette section vous permet de consulter les contributions (messages, sujets et fichiers joints) d'un utilisateur. Vous ne pourrez voir que les contributions des zones auxquelles vous avez accès.
<meta>
<info author="Votre Nom" type="gamemode" name="Mon serveur" description="Mon premier serveur MTA" />
<script src="script.lua" />
</meta>
function joinHandler()
local x = 1959.55
local y = -1714.46
local z = 10
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Bienvenue sur mon serveur", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
new String[128];
format(String, sizeof(String), "{7BAEFF}KILLS : {FFFFFF}%d | {7BAEFF}DEATHS : {FFFFFF}%d | {7BAEFF}RATIO : {FFFFFF}%f", PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pKills]/PlayerInfo[playerid][pDeaths]);
SendClientMessage(playerid, COLOR_BLANC, String);
forward TaFonction(killerid);
public TaFonction(killerid)
{
// INSTRUCTIONS
return 1;
}