Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Cum folosesc Virtual World


Question

Posted

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;
		}
	}

8 answers to this question

Recommended Posts

Posted

poftim aici tutorialul:

http://www.sa-mp.ro/forum/index.php/topic,2705.0.html

PS. - nush cum nu lai gasit ca era pe prima pagina...:P

ca sa nu il lase cu stelele de wanted in casa faci cu functia asta:

if(GetPlayerWantedLevel >= 1)

{

Fara reclama in semnatura!

Posted

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..

Posted

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

Posted

daca pun

if(GetPlayerWantedLevel >= 1)] imi da eroare..

Se vede... whatever pune asa if( GetPlayerWantedLevel >= 1 ), fara ]

142sj0l.png

Underground-GFX

Posted

Se vede... whatever pune asa if( GetPlayerWantedLevel >= 1 ), fara ]
tot nu merge ..
error 076: syntax error in the expression, or invalid function call

Posted

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!

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.