public OnPlayerConnect(playerid){new playrname[MAX_PLAYER_NAME]; new Text:text = TextDrawCreate(5.0, 400.0,Text_Under_Minimap);TextDrawUseBox(text, 0);TextDrawFont(text, 1);TextDrawSetShadow(text,0);TextDrawSetOutline(text,1);TextDrawBackgroundColor(text,0x000000FF);TextDrawColor(text,0xFFFFFFFF);TextDrawShowForPlayer(playerid, text);gLastGaveCash[playerid] = GetTickCount();playerCheckpoint[playerid]=999;bank[playerid]=0;playerGang[playerid]=0;gangInvite[playerid]=0;killstreak[playerid] = 0;//objektek RemoveBuildingForPlayer(playerid, 3337, -132.9609, 552.1328, 5.2422, 0.25); RemoveBuildingForPlayer(playerid, 3336, 81.6016, 689.8125, 4.1406, 0.25); RemoveBuildingForPlayer(playerid, 3336, 98.9063, 658.4297, 4.1406, 0.25); RemoveBuildingForPlayer(playerid, 3405, -447.1016, -48.5938, 61.3594, 0.25); RemoveBuildingForPlayer(playerid, 3405, -435.6875, -48.6016, 60.8594, 0.25); RemoveBuildingForPlayer(playerid, 785, -387.3672, -97.3594, 43.1797, 0.25); RemoveBuildingForPlayer(playerid, 785, -556.0547, 25.4922, 55.0938, 0.25); RemoveBuildingForPlayer(playerid, 1308, -221.5781, -160.4297, 1.3359, 0.25); RemoveBuildingForPlayer(playerid, 3276, -249.0391, -152.5703, 2.2500, 0.25); RemoveBuildingForPlayer(playerid, 3335, -260.6172, -151.5313, 1.3516, 0.25); RemoveBuildingForPlayer(playerid, 694, -404.4688, -144.4219, 61.5781, 0.25); RemoveBuildingForPlayer(playerid, 791, -387.3672, -97.3594, 43.1797, 0.25); RemoveBuildingForPlayer(playerid, 13435, -447.6797, -52.9063, 61.5625, 0.25); RemoveBuildingForPlayer(playerid, 3403, -447.1016, -48.5938, 61.3594, 0.25); RemoveBuildingForPlayer(playerid, 3403, -435.6875, -48.6016, 60.8594, 0.25); RemoveBuildingForPlayer(playerid, 847, -482.5859, -45.3594, 60.6016, 0.25); RemoveBuildingForPlayer(playerid, 694, -621.0234, 60.7266, 45.4219, 0.25); RemoveBuildingForPlayer(playerid, 705, -151.8438, 200.6641, 7.5313, 0.25); RemoveBuildingForPlayer(playerid, 705, -71.2422, 174.6641, 1.1172, 0.25); RemoveBuildingForPlayer(playerid, 13205, -85.8047, -201.5625, 8.9766, 0.25); RemoveBuildingForPlayer(playerid, 13004, -510.6719, -177.9141, 78.5703, 0.25); RemoveBuildingForPlayer(playerid, 4516, -141.3359, 468.6484, 12.9141, 0.25); RemoveBuildingForPlayer(playerid, 4517, -193.8281, 269.5078, 12.8906, 0.25); //Welcome Message SendClientMessage(playerid, COLOR_YELLOW, \"Üdv a szerveren. | Jó játékot kívánok !\"); SendClientMessage(playerid, COLOR_RED, \"Válassz csapatot !\"); //kilstreak killstreak[playerid] = 0; //sets the player\'s killstreak to 0 GetPlayerName(playerid, playrname, sizeof(playrname));for(new i = 0; i < MAX_SAVE; i++) { if(isStringSame(savedNames, playrname, MAX_PLAYER_NAME)) { GivePlayerMoney(playerid, savedInfo[0]); bank[playerid] = savedInfo[1]; bounty[playerid] = savedInfo[2]; savedInfo[0]=savedInfo[1]=savedInfo[2]=0; savedNames[0]=0; for(new j = 0; j < MAX_WEAPONS; j++) { playerWeapons[playerid][j]=savedWeapons[j]; savedWeapons[j]=0; } SendClientMessage(playerid, COLOR_GREEN, \"Your money has been restored.\");}} PLAYERLIST_authed[playerid]=false; return false;}
public OnPlayerSpawn(playerid){// SetVehicleParamsForPlayer(CAR_MARKER_PIRATE,playerid,1,1);// SetVehicleParamsForPlayer(CAR_MARKER_STORE,playerid,1,1);if(GetPlayerMoney(playerid)>=0){GivePlayerMoney(playerid, PocketMoney);} if(GetPlayerTeam(playerid) == Red) { SetPlayerColor(playerid, RedTeamColor); GameTextForPlayer(playerid, \"~r~Piros vagy. \", 3500, 6);SendClientMessage(playerid, COLOR_YELLOW, \"A csapattagok,nem sebzik egymást.Ellenséged,a SÁRGA csapat. !\"); gTeam[playerid] = Red; } else if(GetPlayerTeam(playerid) == Yellow) { SetPlayerColor(playerid, YellowTeamColor); GameTextForPlayer(playerid, \"~y~Sárga vagy.\", 3500, 6); SendClientMessage(playerid, COLOR_RED, \"A csapattagok,nem sebzik egymást.Ellenséged,a PIROS csapat.\"); // Se // Same as above but in this case, CriminalsColor (RED) gTeam[playerid] = Yellow; } gambleWarning[playerid]=0;return 1;}
public OnPlayerRequestClass(playerid, classid){switch(classid) // Switching between the classids { case 0/* The first classid is of the Red Team*/: { SetPlayerTeam(playerid, Red); // Setting players team GameTextForPlayer(playerid, \"~r~PIROS CSAPAT\", 3500, 6); } case 1/* The second classid is of the Yellow Team*/: { SetPlayerTeam(playerid, Yellow); // Same as above GameTextForPlayer(playerid, \"~y~SÁRGA CSAPAT\", 3500, 6); } }return 1;}
for(new i = 0; i < MAX_SAVE; i++) {