24.04.2011, 23:50
Heres the code of some position change scripts...
Theres the /enter command
The 3rd spawn location:
Btw i think the scripts are working...it wasnt problem in 0.3b...
Код:
if(strcmp(cmd, "/gotols", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 9999;
SetPlayerVirtualWorld(playerid,0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nincs jogosultsбgod a parancs hasznбlatбhoz.");
}
}
return 1;
}
if(strcmp(cmd, "/gotolv", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
}
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 9999;
SetPlayerVirtualWorld(playerid,0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nincs jogosultsбgod a parancs hasznбlatбhoz.");
}
}
return 1;
}
if(strcmp(cmd, "/gotosf", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, -1417.0,-295.8,14.1);
}
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 9999;
SetPlayerVirtualWorld(playerid,0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nincs jogosultsбgod a parancs hasznбlatбhoz.");
}
}
return 1;
}
Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1082.6389,996.2617,11.0000))// lift
{
SetPlayerPos(playerid,1029.1073,1010.8311,48.1328);
PlayerPlaySound(playerid, 1095, 0.0, 0.0, 0.0);
return 1;
}
Код:
if(pspawn[playerid] == 3)//ship
{
player_x = 2371.7957;
player_y = 557.4100;
player_z = 7.7802;
}

