25.08.2012, 11:51
I'm having a little trouble with some pickups, I'm wanting the following 2 pickups to appear inside interior 0 (the bank - http://weedarr.wikidot.com/interior)
Here's the code for them...
and
But they don't appear inside the interior.. the co-ordinates are correct though.
(Credit to iGetty for /getcheck)
Here's the code for them...
pawn Код:
command(takejob, playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2309.6050,-2.3004,26.7422))
{
Player[playerid][Job] = 1;
SendClientMessage(playerid, ORANGE, "You are now a street sweeper!");
SendClientMessage(playerid, ORANGE, "More jobs coming soon. There are other side-jobs available. See /help.");
}
return 1;
}
pawn Код:
command(getcheck, playerid, params[])
{
if(CheckReady[playerid] == 1)
{
if(Player[playerid][Faction] == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2309.8147,-8.6073,26.7422))
{
PayDayCheck(playerid);
CheckReady[playerid] = 0;
}
else return SendClientMessage(playerid, WHITE, "You aren't at the job center collection point.");
}
else
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, Factions[Player[playerid][Faction]][fPayCheckX], Factions[Player[playerid][Faction]][fPayCheckY], Factions[Player[playerid][Faction]][fPayCheckZ]))
{
PayDayCheck(playerid);
CheckReady[playerid] = 0;
}
else return SendClientMessage(playerid, WHITE, "You aren't at your paycheck collection point (your headquarters).");
}
}
else return SendClientMessage(playerid, WHITE, "Your check isn't ready to be collected.");
return 1;
}
(Credit to iGetty for /getcheck)