if(PlayerInfo[playerid][pJob] == 16)
{
AddStaticPickup(1239, 1, 983.5647,-904.7174,42.3358); //deliver
AddStaticPickup(1239, 1, 272.7987,1344.7866,11.1762); //take
}
if(PlayerInfo[playerid][pJob] == 16)
{
if (PlayerToPoint(25.0, playerid, 983.5647,-904.7174,42.3358))
{
GameTextForPlayer(playerid, "~n~~w~Deliver your fuel ~r~/deliverfuel", 5000, 3);
}
else if (PlayerToPoint(25.0, playerid,272.7987,1344.7866,11.1762))
{
GameTextForPlayer(playerid, "~n~~w~You can now fill in your trailer with ~r~/takefuel.", 5000, 3);
}
}
if(PlayerInfo[playerid][pJob] == 16)
|
Originally Posted by Amoken
Anyone know why the message and pickup apears only when i use a job id 16 commands?
Код:
if(PlayerInfo[playerid][pJob] == 16) // <---------- MARK
{
AddStaticPickup(1239, 1, 983.5647,-904.7174,42.3358); //deliver
AddStaticPickup(1239, 1, 272.7987,1344.7866,11.1762); //take
}
if(PlayerInfo[playerid][pJob] == 16) // <---------- MARK
{
if (PlayerToPoint(25.0, playerid, 983.5647,-904.7174,42.3358))
{
GameTextForPlayer(playerid, "~n~~w~Deliver your fuel ~r~/deliverfuel", 5000, 3);
}
else if (PlayerToPoint(25.0, playerid,272.7987,1344.7866,11.1762))
{
GameTextForPlayer(playerid, "~n~~w~You can now fill in your trailer with ~r~/takefuel.", 5000, 3);
}
}
|