abu5lf Posted April 2, 2012 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
Castillo Posted April 2, 2012 Posted April 2, 2012 What the hell is this? you post a script and you don't tell us why?
abu5lf Posted April 2, 2012 Author Posted April 2, 2012 What the hell is this? you post a script and you don't tell us why? thanks you problem solved
Castillo Posted April 2, 2012 Posted April 2, 2012 Ok, I'll lock this topic so nobody make's a useless reply.
Recommended Posts