04.04.2011, 13:28
So i want to make a garage when you at that location to type /garazavlez and to enter in the garage i make a interrior and other thigs i make cmd but when i type /garazavlez with car i cant enter but without car can enter.. Why?
Here is cmds:
Here is cmds:
pawn Код:
if(!strcmp(cmdtext, "/garazavlez", true))
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerState(playerid) == 1)
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
{
if(PlayerToPoint(1.0,playerid,1222.5159,-1426.0334,13.3681))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 2663.32958984,1777.94506836,1266.57214355);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 1);
SetPlayerPos(playerid, 2663.32958984,1777.94506836,1266.57214355);
GameTextForPlayer(playerid, "~w~Dobrodosli u Prvu Garazu",5000,1);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
}
}
}
}
return 1;
}
if(!strcmp(cmdtext, "/garazaizlez", true))
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerState(playerid) == 1)
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
{
if(PlayerToPoint(1.0,playerid,242.7591,66.4315,1003.6406))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1222.5159,-1426.0334,13.3681);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetPlayerPos(playerid, 1222.5159,-1426.0334,13.3681);
GameTextForPlayer(playerid, "~w~Dobrodosli u Los Santos",5000,1);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
}
}
return 1;
}