There is no intendation there... Try this:
PHP код:
public OnPlayerSpawn(playerid)
{
ResetPlayerWeapons(playerid);
myvehicle = CreateVehicle(457, 2174.8621, 2946.9783, 25.5139, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, myvehicle, 0);
DestroyVehicle(myvehicle);
new weapons[13][2];
for (new i = 0; i <= 12; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(weapons[i][0] == 2 || weapons[i][0] == 3) Kick(playerid); // change 2 & 3 by what you want.
}
else{
StopAudioStreamForPlayer(playerid);
SetPlayerAttachedObject(playerid, 1, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
SetPlayerAttachedObject(playerid, 2, 18668, 1, 0.1, 0.01, 0.0, 0.0, 0.0, 0.0);
if(pInfo[playerid][Jailed]==1)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,197.5860,174.6970,1003.0234);
ResetPlayerWeapons(playerid);
Jtimer[playerid] = SetTimerEx("Unjail",60000,0,"d",playerid);
print("jailed");
}
if(Captured[playerid][CAPZONE] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1)
{
LeavingCAPZONE(playerid);
}
SetPlayerHealth(playerid, 99999);
SetTimerEx("SpawnProtection", 10000, false, "i", playerid);
SetTimerEx("SpawnProtection1", 3000, false, "i", playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
TextDrawHideForPlayer(playerid, Welcome);
TextDrawHideForPlayer(playerid, register1);
GangZoneShowForAll(GZ_ZONE1, RED);
GangZoneShowForAll(GZ_ZONE3, RED);
GangZoneShowForAll(GZ_ZONE2, COLOR_BLUE);
SetPlayerMapIcon(playerid,44,110.7804,1847.4976,17.6509,6,0); //Ammunation
SetPlayerMapIcon(playerid,53,-252.2458,2598.7747,62.8582,6,0); //Ammunation
SetPlayerMapIcon(playerid, 52, 405.8832,2437.1450,16.5000, 19, 0);
SetPlayerMapIcon(playerid, 43, -24.8893,2350.7937,24.1406, 19, 0);
SetPlayerMapIcon(playerid, 42, 230.3488,2230.7214,35.6824, 19, 0);
SetPlayerMapIcon(playerid, 40, 114.4935,2551.6138,17.4521, 19, 0);
SetPlayerMapIcon(playerid, 41, 131.4584,2436.5261,17.1335, 19, 0);
SetPlayerMapIcon(playerid, 40,-523.1448,2592.9795,53.4141, 55, 0);
SetPlayerMapIcon(playerid, 47,213.6022,1823.8031,6.4141, 16, 0);
SetPlayerMapIcon(playerid, 48,-332.7610,1555.5697,75.5625, 31, 0, MAPICON_GLOBAL);
TextDrawShowForPlayer(playerid, ScoreTextdraw[playerid]);
TextDrawShowForPlayer(playerid, KillsTextdraw[playerid]);
TextDrawShowForPlayer(playerid, DeathsTextdraw[playerid]);
TextDrawShowForPlayer(playerid, RatioTextdraw[playerid]);
TextDrawShowForPlayer(playerid, Textdraw0);
//usa base
//---//
if(gTeam[playerid] == C1) {
new Random = random(sizeof(CSpawns));
SetPlayerPos(playerid, CSpawns[Random][0], CSpawns[Random][1], CSpawns[Random][2]);
SetPlayerFacingAngle(playerid, CSpawns[Random][3]);
SetPlayerTeam(playerid, C1);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, -1, "{FFFFFF}>Your team is "blue1"Cops {FFFFFF}if you want to change team type /changeteam!");
SetPlayerColor(playerid, C_COLOR);
}
if(gTeam[playerid] == T1) {
new Random = random(sizeof(TSpawns));
SetPlayerPos(playerid, TSpawns[Random][0], TSpawns[Random][1], TSpawns[Random][2]);
SetPlayerFacingAngle(playerid, TSpawns[Random][3]);
SetPlayerTeam(playerid, T1);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, -1, "{FFFFFF}>Your team is "red1"Terrorists {FFFFFF}if you want to change team type /changeteam!");
SetPlayerColor(playerid, T_COLOR);
}
if(gTeam[playerid] == BG)
{
SetPlayerTeam(playerid, BG);
SetPlayerPos(playerid,-688.2626,929.6989,13.6293);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, -1, "{FFFFFF}>Your team is "red1"Silent Assassin {FFFFFF}if you want to change team type {FFFFFF}/changeteam!");
SetPlayerColor(playerid, RED);
pInfo[playerid][Spawned] = 1;
}
if(pInfo[playerid][Registered] == 1 && pInfo[playerid][Logged] == 0)
{
ShowPlayerDialog(playerid, JDIALOGS+45, DIALOG_STYLE_MSGBOX," {FB0404}Kicked", "You have been kicked | Reason: \"You must be logged before spawn\"", "Ok", "");
SetTimerEx("KickPlayer",100,false,"d", playerid);
return 0;
}
if(GetPVarInt(playerid,"Useskin") == 1)
{
SetPlayerSkin(playerid, pInfo[playerid][Skin]);
}
return 1;
}