Help me:)
#1

Can any1 explain what means these

if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerPos(playerid, 446.9658,1399.1479,1084.3047); -- This
GameTextForPlayer(playerid, "~w~Street Racer's Club HQ",5000,1);
SetPlayerInterior(playerid,2);
SetPlayerFacingAngle(playerid, 1);
PlayerInfo[playerid][pInt] = 2;
}
else if(hqlock[iolock] == 0) -- This
{
SetPlayerPos(playerid, 318.4700,1117.5127,1083.882; -- This
GameTextForPlayer(playerid, "~w~Street Racer's Club HQ",5000,1);
SetPlayerInterior(playerid,2);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 2;
}
else
{
GameTextForPlayer(playerid, "~r~Locked",5000,1);
}
}
else if (PlayerToPointStripped(1, playerid,447.0208,1397.4796,1084.3047, cx,cy,cz)) -- This
{
SetPlayerPos(playerid, 2501.8979,-1495.7324,24.0000); -- This
GameTextForPlayer(playerid, "~w~Los Angeles",5000,1); -- This
SetPlayerInterior(playerid,0); -- This
SetPlayerFacingAngle(playerid, 179); -- This
PlayerInfo[playerid][pInt] = 0; -- This
}
else if (PlayerToPointStripped(1, playerid,2091.5896,-1184.2958,27.0571, cx,cy,cz)) -- This
{

Cheers
Reply
#2

Help plz!
Reply
#3

Check comments in brackets.

Quote:
Originally Posted by Jack_Blade
Посмотреть сообщение
SetPlayerPos(playerid, 446.9658,1399.1479,1084.3047); -- This [moves the player to the coordinates provided]
else if(hqlock[iolock] == 0) -- This [checks the value of hqlock[iolock] to see if its 0. no idea what this variable is]
SetPlayerPos(playerid, 318.4700,1117.5127,1083.882; -- This [see above]
else if (PlayerToPointStripped(1, playerid,447.0208,1397.4796,1084.3047, cx,cy,cz)) -- This [presumably a player in range of point check. difficult to know for sure without seeing the definition of this function]
SetPlayerPos(playerid, 2501.8979,-1495.7324,24.0000); -- This [see above]
GameTextForPlayer(playerid, "~w~Los Angeles",5000,1); -- This [displayes game text to the player screen]
SetPlayerInterior(playerid,0); -- This [changes the players interior]
SetPlayerFacingAngle(playerid, 179); -- This [changes the angle the player is viewing]
PlayerInfo[playerid][pInt] = 0; -- This [storing the players new interior]
else if (PlayerToPointStripped(1, playerid,2091.5896,-1184.2958,27.0571, cx,cy,cz)) -- This [see above]
When in doubt, change something, compile and test and see what difference it makes!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)