Jump to content
  • 0

Cum folosesc Virtual World


qUick

Question

Cum pot sa pun virtual world la case ( nu am gasit in tutorialu' gf ) ? :D

Cum pot sa pun virtual world si sa nu pot intra daca am wanted la asta:

if(strcmp(cmdtext, "/enter", true) == 0)
    {
 		if PlayerToPoint(5,playerid,1199.2870,-919.0890,43.1159)
 		*then
 		{
		SetPlayerPos(playerid,363.3298,-74.6134,1001.5078);
		SetPlayerInterior(playerid,10);
		PlayerInfo[playerid][pInt] = 10;
 		GameTextForPlayer(playerid, "~h~Burger Shot", 5000, 1);
   		return 1;
		}
	}
	if(strcmp(cmdtext, "/exit", true) == 0)
    {
    	if PlayerToPoint(5,playerid,363.3298,-74.6134,1001.5078)
 		*then
 		{
		SetPlayerPos(playerid,1199.2870,-919.0890,43.1159);
		SetPlayerInterior(playerid,0);
		PlayerInfo[playerid][pInt] = 0;
   		return 1;
		}
	}

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

waaw... am gasit si eu tutorialu ma, da nu scrie nimic de Virtual World ... :P

Ce e gresit aici ?

if(strcmp(cmdtext, "/enter", true) == 0)
    {
    if(PlayerInfo[playerid][pWantedLevel] >= 1)
	{
 		if PlayerToPoint(5,playerid,999.2678,-919.9958,42.1797)
 		*then
 		{
		SetPlayerPos(playerid,-27.312299,-29.277599,1003.557250);
		SetPlayerInterior(playerid,4);
		PlayerInfo[playerid][pInt] = 4;
 		GameTextForPlayer(playerid, "~h~24/7", 5000, 1);
   		return 1;
		}
	else
	{
	GameTextForPlayer(playerid, "~r~Criminals can't hide in houses!", 5000, 1);
	return 1;
	}
	}
	}
daca pun
if(GetPlayerWantedLevel >= 1)] imi da eroare..

Link to comment
Share on other sites

daca cauti despre world -->

AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Costa, Sella, Interiora, virtualworld)

ultima chestie e world-ul daca vrei fiecare casa cu world iei,incepi la fiecare casa sa pui 0, a2a casa 1, a3a casa,2.. si tot asa xD

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

qUick se vede ca nu gadesti am spus ca, cu functia if(GetPlayerWantedLevel >= 1) o folosesti pentru a nu-l lasa sa intre in casa...tu crezi ca ii destul ca pui numai asta: if(GetPlayerWantedLevel >= 1)???

wathever...uite fa asa:


if(strcmp(cmdtext, "/enter", true) == 0)
{
        if(GetPlayerWantedLevel(playerid) >= 1)
        {
            if PlayerToPoint(5,playerid,999.2678,-919.9958,42.1797)
            {
                SetPlayerPos(playerid,-27.312299,-29.277599,1003.557250);
                SetPlayerInterior(playerid,4);
                PlayerInfo[playerid][pInt] = 4;
                GameTextForPlayer(playerid, "~h~24/7", 5000, 1);
                return 1;
       }
       else
       {
            GameTextForPlayer(playerid, "~r~Criminals can't hide in houses!", 5000, 1);
            return 1;
        }
    }
}

Fara reclama in semnatura!

Link to comment
Share on other sites

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.