30.06.2012, 15:36
This is my code there:
But cant seem to find where to put it, im sorry for asking so much, but im a newbie and better to learn and take it it anyways, thank you for the help
Код:
public OnPlayerSpawn(playerid) { if (IsPlayerNPC(playerid)) return 1; if (APlayerData[playerid][LoggedIn] == false) { SendClientMessage(playerid, 0xFFFFFFFF, TXT_FailedLoginProperly); Kick(playerid); } new missiontext[200]; SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); APlayerData[playerid][CurrentHouse] = 0; TogglePlayerClock(playerid, 0); ResetPlayerWeapons(playerid); switch (APlayerData[playerid][PlayerClass]) { case ClassTruckDriver: { format(missiontext, sizeof(missiontext), Trucker_NoJobText); SetPlayerColor(playerid, ColorClassTruckDriver); } case ClassBusDriver: { format(missiontext, sizeof(missiontext), BusDriver_NoJobText); SetPlayerColor(playerid, ColorClassBusDriver); } case ClassPilot: { format(missiontext, sizeof(missiontext), Pilot_NoJobText); SetPlayerColor(playerid, ColorClassPilot); } case ClassPolice: { format(missiontext, sizeof(missiontext), Police_NoJobText); SetPlayerColor(playerid, ColorClassPolice); KillTimer(APlayerData[playerid][PlayerCheckTimer]); APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Police_CheckWantedPlayers", 1000, true, "i", playerid); if (PoliceGetsWeapons == true) { for (new i; i < 12; i++) GivePlayerWeapon(playerid, APoliceWeapons[i], PoliceWeaponsAmmo); } } case ClassMafia: { format(missiontext, sizeof(missiontext), Mafia_NoJobText); SetPlayerColor(playerid, ColorClassMafia); KillTimer(APlayerData[playerid][PlayerCheckTimer]); APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Mafia_CheckMafiaLoads", 1000, true, "i", playerid); } case ClassCourier: { format(missiontext, sizeof(missiontext), Courier_NoJobText); SetPlayerColor(playerid, ColorClassCourier); } case ClassAssistance: { format(missiontext, sizeof(missiontext), Assistance_NoJobText); SetPlayerColor(playerid, ColorClassAssistance); KillTimer(APlayerData[playerid][PlayerCheckTimer]); APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Assistance_CheckPlayers", 1000, true, "i", playerid); } case ClassRoadWorker: { format(missiontext, sizeof(missiontext), RoadWorker_NoJobText); SetPlayerColor(playerid, ColorClassRoadWorker); } } TextDrawSetString(APlayerData[playerid][MissionText], missiontext); TextDrawShowForPlayer(playerid, APlayerData[playerid][MissionText]); if (APlayerData[playerid][PlayerJailed] != 0) Police_JailPlayer(playerid, APlayerData[playerid][PlayerJailed]); return 1; }