Jump to content

Question

Posted

Sal baieti,nu vreau sa va innebunesc cu o chestie de asta tampita,dar eu nu ma pricep si nu stiu cum sa fac,deci cnad intru intr-o casa si incerc sa dau /exit nu merge deloc,raman blocat acolo,de ce?

Aici este codul :

[pawn]

if(strcmp(cmd, "/exit", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

for(new i = 0; i <  sizeof(HouseInfo); i++)

{

//printf("House :%d",i);

if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]))

{

    if(HouseEntered[playerid] == i)

    {

SetPlayerInterior(playerid,0);

SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]);

PlayerInfo[playerid][pInt] = 0;

PlayerInfo[playerid][pLocal] = 255;

SetCameraBehindPlayer(playerid);

SetPlayerVirtualWorld(playerid,0);

HouseEntered[playerid] = 255;

if(HouseInfo[hHel] == 1)

{

new Float:tempheal;

GetPlayerHealth(playerid,tempheal);

if(tempheal < 100.0)

{

SetPlayerHealth(playerid,100.0);

}

}

return 1;

}

}

}

[/pawn]

1 answer to this question

Recommended Posts

Posted

Incearca asa din PlayerToPoint schimba in IsPlayerInRangeOfPoint

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.