0 Members and 2 Guests are viewing this topic.
public OnPlayerSpawn(playerid,classid,teamid){ PlayerInfo[playerid][Spawned] = 1; GameTextForPlayerBottom(playerid,"\x10"); format(file, sizeof(file), USERS_FILE, gPlayers[playerid]);//===========================Random Spawn=================== switch(random(23)) { case 1: {SetPlayerPos(playerid, -874.2833,-572.9792,11.1963,0,0);} case 2: {SetPlayerPos(playerid, -0.5099,966.1412,10.9402,0,0);} case 3: {SetPlayerPos(playerid, 100.2213,252.8940,21.7719,0,0);} case 4: {SetPlayerPos(playerid, 480.7910,-1737.1931,9.7549,0,0);} case 5: {SetPlayerPos(playerid, -912.3077,52.8533, 10.5454,0,0);} case 6: {SetPlayerPos(playerid, -19.1970,-1016.3509, 10.4633,0,0);} case 7: {SetPlayerPos(playerid, -74.26731872,-1532.67358398,12.80998134,0,0);} case 8: {SetPlayerPos(playerid, 509.110840,513.077393, 12.105222,0,0);} case 9: {SetPlayerPos(playerid, -375.595856,-1328.728638, 13.993320,0,0);} case 10: {SetPlayerPos(playerid, -76.297394,82.727058, 9.683201,0,0);} case 11: {SetPlayerPos(playerid, 7.289513,964.033752, 10.940242,0,0);} case 12: {SetPlayerPos(playerid, 465.400146,-56.354183, 15.703786,0,0);} case 13: {SetPlayerPos(playerid, -707.816711,1261.134277, 11.767310,0,0);} case 14: {SetPlayerPos(playerid, -405.183014,1114.830811, 11.070875,0,0);} case 15: {SetPlayerPos(playerid, 230.459778,-1265.295288, 20.112789,0,0);} case 16: {SetPlayerPos(playerid, -994.863342,200.776215, 15.221324,0,0);} case 17: {SetPlayerPos(playerid, -597.805725,654.243958, 11.072048,0,0);} case 18: {SetPlayerPos(playerid, -1078.070679,1330.905151, 13.918839,0,0);} case 19: {SetPlayerPos(playerid, -1463.359497,-858.807983, 14.878179,0,0);} case 20: {SetPlayerPos(playerid, -1719.690552,-156.657364, 14.868327,0,0);} case 21: {SetPlayerPos(playerid, -630.643433,-1489.826538,13.024486,0,0);} case 22: {SetPlayerPos(playerid, 79.292534,-1453.817383,11.606825,0,0);} case 23: {SetPlayerPos(playerid, -869.81256103,-473.63110351,11.10341167,0,0);} }//==========================No Errores======================================= if(dini_Exists(file)) { if(PlayerInfo[playerid][Logged] != 1) { new string[256]; format(string,256,"Auto_Kick:[ %s ] Reason:[ Failed to login ]",gPlayers[playerid]); SendClientMessageToAll(COLOR_GREEN,string); Kick(playerid); } else { // player spawned and logged in so we need to set the money new cash = dini_Int(file, "Cash"); SetPlayerMoney(playerid,cash); } } else SetPlayerMoney(playerid,0); return 1;}