Jump to content

Login/Register (ZCMD SSCANF Y_INI)


Guest PlayON

Recommended Posts

Guest PlayON

Cum sa fie imposibil? Am vazut pe nenumarate servere ... Trebuie sa fie o metoda ... :)

Posibil ceva legat de keys si statechange si SpawnPlayer, intreaba la americani :D (Eu unul nu stiu o metoda!)

Link to comment
Share on other sites

Da. Eventual poti sa pui conditii. Eu am asa.

public OnPlayerSpawn(playerid)
{
	if(PlayerInfo[playerid][Spawn] == 1)
	{
	    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
	    SendClientMessage(playerid, COLOR_GRAD1, "Te-ai spawnat in {00FF22} Los Santos.");
	    SendClientMessage(playerid, COLOR_GRAD1, "Pentru a-ti schimba spawn-ul tasteaza "LIGHTBLUE"/spawn");
		SetPlayerInterior(playerid,0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PlayerInfo[playerid][Spawn] == 2)
	{
	    SetPlayerPos(playerid, -1417.0,-295.8,14.1);
	    SendClientMessage(playerid, COLOR_GRAD1, "Te-ai spawnat in {00FF22} San Fierro.");
	    SendClientMessage(playerid, COLOR_GRAD1, "Pentru a-ti schimba spawn-ul tasteaza "LIGHTBLUE"/spawn");
		SetPlayerInterior(playerid,0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PlayerInfo[playerid][Spawn] == 3)
	{
	    SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
	    SendClientMessage(playerid, COLOR_GRAD1, "Te-ai spawnat in {00FF22} Las Venturas.");
	    SendClientMessage(playerid, COLOR_GRAD1, "Pentru a-ti schimba spawn-ul tasteaza "LIGHTBLUE"/spawn");
		SetPlayerInterior(playerid,0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PlayerInfo[playerid][Spawn] == 4)
	{
	    SetPlayerPos(playerid, -2311.7415,-1637.7587,483.2643);
	    SendClientMessage(playerid, COLOR_GRAD1, "Te-ai spawnat in {00FF22} Chilliad.");
	    SendClientMessage(playerid, COLOR_GRAD1, "Pentru a-ti schimba spawn-ul tasteaza "LIGHTBLUE"/spawn");
		SetPlayerInterior(playerid,0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

Link to comment
Share on other sites

Am reusit partial sa rezolv problema mea. Deci, acum cand ma loghez, ma spawneaza direct ... dar mai ramane problema cu F4 ... nu stiu cum sa rezolv aia inca. Daca ai vreo idee, te rog posteaz`o. Pana atunci, ma mai chinuiesc eu ... poate reusesc ceva.

Later edit: Am rezolvat`o si pe asta ! Mersi fain de ajutor.

Link to comment
Share on other sites

  • 1 year later...

Uite ce imi da mie ..

D:\Torreto Racing\filterscripts\Untitled.pwn(77) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(91) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(96) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(117) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(119) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(126) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(127) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(172) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(183) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(185) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(187) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(190) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(197) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(223) : warning 217: loose indentation
D:\Torreto Racing\filterscripts\Untitled.pwn(261) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


18 Warnings.

Ce pot sa fac ?

mZiAe.jpg
Link to comment
Share on other sites

Trebuie sa fie codurile in aceiasi linie

uite

sa nu fie asa

[pawn]

CreateDynamicObject(3267,1543.48046875,-1632.30285645,15.36717987,0.00000000,0.00000000,89.32449341); //

        CreateDynamicObject(3267,1543.57739258,-1634.76025391,15.36642933,0.00000000,0.00000000,89.32434082); //

CreateDynamicObject(3267,1545.98974609,-1634.83093262,15.26642895,0.00000000,0.00000000,178.64379883); //

CreateDynamicObject(969,1539.96813965,-1617.73925781,15.60506916,0.00000000,0.00000000,0.00000000); //

CreateDynamicObject(792,1541.80651855,-1620.41369629,12.81677532,0.00000000,0.00000000,0.00000000); //object(aw_streettree1)(4)

CreateDynamicObject(3475,1544.52783203,-1620.44396973,13.06688309,0.00000000,0.00000000,179.45996094); //object(vgsn_fncelec_pst)(1)

CreateDynamicObject(3550,1545.16210938,-1620.42773438,12.45479393,0.00000000,0.00000000,0.00000000); //object(vgsn_fncelec_msh)(1)

  CreateDynamicObject(3578,1544.58251953,-1628.46630859,11.60401726,0.00000000,0.00000000,89.72534180); //object(dockbarr1_la)(1)

    Subterranea = CreateObject(971,1589.02050781,-1638.08789062,14.95541191,0.00000000,0.00000000,179.45617676); //porton subterraneo

    CreateDynamicObject(3578,1589.31274414,-1638.09411621,11.69941807,2.21932983,1.41104126,181.90057373); //object(dockbarr1_la)(2)

CreateDynamicObject(1495,1582.60595703,-1638.04980469,12.29261684,0.00000000,0.00000000,359.50000000); //object(gen_doorext01)(1)

CreateDynamicObject(8168,1545.74902344,-1633.55566406,14.11017895,0.00000000,0.00000000,197.17712402); //object(vgs_guardhouse01)(2)

CreateDynamicObject(3475,1546.77575684,-1638.66101074,13.30988407,0.00000000,0.00000000,180.40625000); //object(vgsn_fncelec_pst)(6)

[/pawn]

Dar asa

[pawn]CreateDynamicObject(3267,1543.48046875,-1632.30285645,15.36717987,0.00000000,0.00000000,89.32449341); //  CreateDynamicObject(3267,1543.57739258,-1634.76025391,15.36642933,0.00000000,0.00000000,89.32434082); CreateDynamicObject(3267,1545.98974609,-1634.83093262,15.26642895,0.00000000,0.00000000,178.64379883); //

CreateDynamicObject(969,1539.96813965,-1617.73925781,15.60506916,0.00000000,0.00000000,0.00000000); //

CreateDynamicObject(792,1541.80651855,-1620.41369629,12.81677532,0.00000000,0.00000000,0.00000000); //object(aw_streettree1)(4)

CreateDynamicObject(3475,1544.52783203,-1620.44396973,13.06688309,0.00000000,0.00000000,179.45996094); //object(vgsn_fncelec_pst)(1)

CreateDynamicObject(3550,1545.16210938,-1620.42773438,12.45479393,0.00000000,0.00000000,0.00000000); //object(vgsn_fncelec_msh)(1)

CreateDynamicObject(3578,1544.58251953,-1628.46630859,11.60401726,0.00000000,0.00000000,89.72534180); //object(dockbarr1_la)(1)

CreateObject(971,1589.02050781,-1638.08789062,14.95541191,0.00000000,0.00000000,179.45617676); //porton subterraneo

CreateDynamicObject(3578,1589.31274414,-1638.09411621,11.69941807,2.21932983,1.41104126,181.90057373); //object(dockbarr1_la)(2)

CreateDynamicObject(1495,1582.60595703,-1638.04980469,12.29261684,0.00000000,0.00000000,359.50000000); //object(gen_doorext01)(1)

CreateDynamicObject(8168,1545.74902344,-1633.55566406,14.11017895,0.00000000,0.00000000,197.17712402); //object(vgs_guardhouse01)(2)

CreateDynamicObject(3475,1546.77575684,-1638.66101074,13.30988407,0.00000000,0.00000000,180.40625000); //object(vgsn_fncelec_pst)(6)[/pawn]

i_gerb.gif
Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
  • 2 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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