abu5lf Posted April 2, 2012 Share Posted April 2, 2012 (edited) function onLogin (_,account) local police = getAccountData(account, "polic") if police then setPlayerTeam ( source, police ) setElementModel (source, 230) end end addEventHandler ("onPlayerLogin", root, onLogin) function saveData(thePlayer, theAccount) if (getPlayerTeam(thePlayer) == getTeamFromName("Police")) and (theAccount and not isGuestAccount(theAccount)) then setAccountData (theAccount, "police", getTeamFromName("Police") ) end end addEventHandler ("onPlayerQuit", root, saveData) addEventHandler ("onPlayerLogout", root, saveData) Edited April 2, 2012 by Guest Link to comment
Castillo Posted April 2, 2012 Share Posted April 2, 2012 What the hell is this? you post a script and you don't tell us why? Link to comment
abu5lf Posted April 2, 2012 Author Share Posted April 2, 2012 What the hell is this? you post a script and you don't tell us why? thanks you problem solved Link to comment
Castillo Posted April 2, 2012 Share Posted April 2, 2012 Ok, I'll lock this topic so nobody make's a useless reply. Link to comment
Recommended Posts