04.04.2011, 15:07
this is how it should look
pawn Код:
if(!strcmp(cmdtext, "/garazavlez", true))
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerState(playerid) == 0)
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
{
if(PlayerToPoint(1.0,playerid,1222.5159,-1426.0334,13.3681))
{
if(IsPlayerInAnyVehicle(playerid))
{
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;
}else{
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) == 0)
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
{
if(PlayerToPoint(1.0,playerid,242.7591,66.4315,1003.6406))
{
if(IsPlayerInAnyVehicle(playerid))
{
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;
}else{
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;
}