onplayerspanw bugado
#9

Obrigados a todos que tiveram a intenзгo de mim ajudar.
Era para mim tirar os else e colocar os returns, agora assim funciona direitinho.

pawn Код:
public OnPlayerSpawn(playerid)
{
    TextDrawHideForPlayer(playerid, bottomblack);
    TextDrawHideForPlayer(playerid, topblack);
    PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
    GangZoneShowForPlayer(playerid, favela2, vermelho);
    GangZoneFlashForPlayer(playerid,favela2,amarelo);
    TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);
    SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," ");
    TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
    gettime(hour12, minute12);
    SetPlayerTime(playerid, hour12, minute12);
    TextDrawShowForPlayer(playerid, ViewZeit);
    TextDrawShowForPlayer(playerid, ViewDatum);


    if(jailed[playerid] == 1)//tava preso
    {
    SetPlayerInterior(playerid,6);
    SetPlayerPos(playerid,263.4707,77.5040,1001.0391);
    SetPlayerFacingAngle(playerid,266.3124);
    ResetPlayerWeapons(playerid);
    GameTextForPlayer(playerid,"~y~P~b~R~y~E~b~S~y~O", 0900,0);
    return 1;
    }
   

    if(lossantos[playerid] == 1)//moreu na favela
    {
    lossantos[playerid] = 0;
    SetPlayerPos(playerid,1982.0358,-1177.9456,20.0234);
    SetPlayerFacingAngle(playerid,262.0986);
    SetPlayerInterior(playerid,0);
    return 1;
    }
   
    if(lossantos[playerid] == 2)//moreu em los santos
    {
    lossantos[playerid] = 0;
    SetPlayerPos(playerid,1172.5354,-1327.5032,15.4041);
    SetPlayerFacingAngle(playerid,309.0149);
    SetPlayerInterior(playerid,0);
    return 1;
    }
   
    if(lossantos[playerid] == 3)//moreu perto do aeroporto velho
    {
    lossantos[playerid] = 0;
    SetPlayerPos(playerid,-1513.9719,2527.8230,55.7311);
    SetPlayerFacingAngle(playerid,6.8425);
    SetPlayerInterior(playerid,0);
    return 1;
    }
Reply


Messages In This Thread
onplayerspanw bugado - by rafa3dify - 01.09.2010, 21:44
Re: onplayerspanw bugado - by pedro xD~ - 02.09.2010, 02:34
Re: onplayerspanw bugado - by rafa3dify - 02.09.2010, 18:46
Re: onplayerspanw bugado - by BiieL - 02.09.2010, 18:48
Re: onplayerspanw bugado - by rafa3dify - 02.09.2010, 18:50
Re: onplayerspanw bugado - by rafa3dify - 02.09.2010, 21:29
Re: onplayerspanw bugado - by rafa3dify - 03.09.2010, 16:25
Respuesta: onplayerspanw bugado - by ipsBruno - 04.09.2010, 03:55
Re: onplayerspanw bugado - by rafa3dify - 04.09.2010, 05:15

Forum Jump:


Users browsing this thread: 3 Guest(s)