Jump to content
  • 0

O problema


wifi123

Question

Salut SA:MP Ro am si eu o mica problema cu un gm godfather , nu merge sa deschid nici o poarta de la factiuni , zice in chat ca poarta s-a deschis si ca se v-a inchide peste 5 secunde dar nu se intampla nimic

Uitati una dintre liniile cu porti:

[pawn] if (newkeys==KEY_FIRE)

{

if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)

{

if(IsPlayerConnected(playerid))

{

if(PlayerToPoint(10, playerid,1588.1082,-1634.5288,13.3828) || PlayerToPoint(10, playerid,1588.6952,-1640.6711,13.1626))

{

    MoveDynamicObject(gatepd, 1598.268677, -1638.331177, 13.752552, 4.0);

    SendClientMessage(playerid, 0xE422E9F8, "{00FF00}[Cenzurat]: {FF8000}Poarta LSPD s-a deschis si se va inchide in 5 secunde !");

    SetTimer("gatepdclose",4000, false);

    return 1;

}

}

}

}[/pawn]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

	if (newkeys==KEY_FIRE)
	{
		if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
		{
			if(IsPlayerConnected(playerid))
			{
				if(PlayerToPoint(10, playerid,1588.1082,-1634.5288,13.3828) || PlayerToPoint(10, playerid,1588.6952,-1640.6711,13.1626))
				{
				    MoveObject(gatepd, 1598.268677, -1638.331177, 13.752552, 4.0);
				    SendClientMessage(playerid, 0xE422E9F8, "{00FF00}[Cenzurat]: {FF8000}Poarta LSPD s-a deschis si se va inchide in 5 secunde !");
				    SetTimer("gatepdclose",4000, false);
				    return 1;
				}
			}
		}
la ongamemodeinit / onfilterscriptinit
gatepd = CreateObject(........)

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

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.