Destroy vehicle problem
#8

PHP код:
public OnPlayerSpawn(playerid)
{
       
ResetPlayerWeapons(playerid);
    
myvehicle CreateVehicle(4572174.86212946.978325.51390.0000, -1, -1100);
    
PutPlayerInVehicle(playeridmyvehicle0);
      
DestroyVehicle(myvehicle);
      if(
GetPlayerWeapon(playerid) == 2)
      {
    
Kick(playerid);
    }
    else{
    
StopAudioStreamForPlayer(playerid);
     
SetPlayerAttachedObject(playerid119142,  10.1,  0.050.0,  0.0,   0.0,   0.0);
     
SetPlayerAttachedObject(playerid218668,  10.1,  0.010.0,  0.0,   0.0,   0.0);
    if(
pInfo[playerid][Jailed]==1)
     {
     
SetPlayerInterior(playerid3);
     
SetPlayerPos(playerid,197.5860,174.6970,1003.0234);
     
ResetPlayerWeapons(playerid);
     
Jtimer[playerid] = SetTimerEx("Unjail",60000,0,"d",playerid);
    print(
"jailed");
     }
    if(
Captured[playerid][CAPZONE] == && IsPlayerCapturing[playerid][CAPZONE] == 1)
    {
    
LeavingCAPZONE(playerid);
    }
    
SetPlayerHealth(playerid99999);
    
SetTimerEx("SpawnProtection"10000false"i"playerid);
    
SetTimerEx("SpawnProtection1"3000false"i"playerid);
    
SetPlayerVirtualWorld(playerid0);
    
SetPlayerInterior(playerid0);
    
TextDrawHideForPlayer(playeridWelcome);
    
TextDrawHideForPlayer(playeridregister1);
    
GangZoneShowForAll(GZ_ZONE1RED);
    
GangZoneShowForAll(GZ_ZONE3RED);
    
GangZoneShowForAll(GZ_ZONE2COLOR_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(playerid52405.8832,2437.1450,16.5000190);
    
SetPlayerMapIcon(playerid43, -24.8893,2350.7937,24.1406190);
    
SetPlayerMapIcon(playerid42230.3488,2230.7214,35.6824190);
    
SetPlayerMapIcon(playerid40114.4935,2551.6138,17.4521190);
    
SetPlayerMapIcon(playerid41131.4584,2436.5261,17.1335190);
    
SetPlayerMapIcon(playerid40,-523.1448,2592.9795,53.4141550);
    
SetPlayerMapIcon(playerid47,213.6022,1823.8031,6.4141160);
    
SetPlayerMapIcon(playerid48,-332.7610,1555.5697,75.5625310MAPICON_GLOBAL);
    
TextDrawShowForPlayer(playeridScoreTextdraw[playerid]);
    
TextDrawShowForPlayer(playeridKillsTextdraw[playerid]);
    
TextDrawShowForPlayer(playeridDeathsTextdraw[playerid]);
    
TextDrawShowForPlayer(playeridRatioTextdraw[playerid]);
    
TextDrawShowForPlayer(playeridTextdraw0);
    
//usa base
    //---//
    
if(gTeam[playerid] == C1) {
    new 
Random random(sizeof(CSpawns));
    
SetPlayerPos(playeridCSpawns[Random][0], CSpawns[Random][1], CSpawns[Random][2]);
    
SetPlayerFacingAngle(playeridCSpawns[Random][3]);
    
SetPlayerTeam(playeridC1);
    
SetPlayerInterior(playerid0);
    
SendClientMessage(playerid, -1"{FFFFFF}>Your team is "blue1"Cops {FFFFFF}if you want to change team type /changeteam!");
    
SetPlayerColor(playeridC_COLOR);
    }
    if(
gTeam[playerid] == T1) {
    new 
Random random(sizeof(TSpawns));
    
SetPlayerPos(playeridTSpawns[Random][0], TSpawns[Random][1], TSpawns[Random][2]);
    
SetPlayerFacingAngle(playeridTSpawns[Random][3]);
    
SetPlayerTeam(playeridT1);
    
SetPlayerInterior(playerid0);
    
SendClientMessage(playerid, -1"{FFFFFF}>Your team is "red1"Terrorists {FFFFFF}if you want to change team type /changeteam!");
    
SetPlayerColor(playeridT_COLOR);
    }
    if(
gTeam[playerid] == BG) {
    
SetPlayerTeam(playeridBG);
    
SetPlayerPos(playerid,-688.2626,929.6989,13.6293);
    
SetPlayerInterior(playerid0);
    
SendClientMessage(playerid, -1"{FFFFFF}>Your team is "red1"Silent Assassin {FFFFFF}if you want to change team type {FFFFFF}/changeteam!");
    
SetPlayerColor(playeridRED);
    
pInfo[playerid][Spawned]    = 1;
         }
    if(
pInfo[playerid][Registered] == && pInfo[playerid][Logged] == 0)
    {
    
ShowPlayerDialog(playeridJDIALOGS+45DIALOG_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(playeridpInfo[playerid][Skin]);
    }}
    return 
1;

Reply


Messages In This Thread
Destroy vehicle problem - by Mijata - 02.06.2016, 16:07
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 16:19
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 16:30
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 16:35
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 16:38
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 16:45
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 16:51
Re: Destroy vehicle problem - by ProRakNet - 02.06.2016, 17:09
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 17:29
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 17:29

Forum Jump:


Users browsing this thread: 4 Guest(s)