CMD:getmats(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1168.90, 1361.76, 10.50)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's pickup point!"); { SendClientMessage(playerid,COLOR_RED,"You have gotten a materials package, deliver it to the checkpoint to recieve the materials."); SetPlayerCheckpoint(playerid, 2179.7886,-2263.6206,14.7734, 3.0); PlayerInfo[playerid][pGotMaterials] = 1; } return 1; } CMD:delivermats(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 2179.7886,-2263.6206,14.7734)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's drop-off point!"); { SendClientMessage(playerid,COLOR_RED,"You delivered the package and recieved 250 materials."); PlayerInfo[playerid][pMaterials] = 250; } return 1; }
This forum requires that you wait 120 seconds between posts. Please try again in 6 seconds. |
CMD:getmats(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1168.90, 1361.76, 10.50)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's pickup point!");
{
SendClientMessage(playerid,COLOR_RED,"You have gotten a materials package, deliver it to the checkpoint to recieve the materials.");
SetPlayerCheckpoint(playerid, 2179.7886,-2263.6206,14.7734, 3.0);
PlayerInfo[playerid][pGotMaterials] = 1;
}
return 1;
}
CMD:delivermats(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2179.7886,-2263.6206,14.7734)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's drop-off point!");
{
if(PlayerInfo[playerid][pGotMaterials] == 0) return SendClientMessage(playerid, COLOR_GREY, "You do not have the packages.");
SendClientMessage(playerid,COLOR_RED,"You delivered the package and recieved 250 materials.");
PlayerInfo[playerid][pMaterials] = 250;
}
return 1;
}
CMD:getmats(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1168.90, 1361.76, 10.50)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's pickup point!");
{
SendClientMessage(playerid,COLOR_RED,"You have gotten a materials package, deliver it to the checkpoint to recieve the materials.");
SetPlayerCheckpoint(playerid, 2179.7886,-2263.6206,14.7734, 3.0);
PlayerInfo[playerid][pGotMaterials] = 1;
}
return 1;
}
CMD:delivermats(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2179.7886,-2263.6206,14.7734)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's drop-off point!");
{
if(PlayerInfo[playerid][pGotMaterials] == 0) return SendClientMessage(playerid, COLOR_GREY, "You do not have the packages.");
SendClientMessage(playerid,COLOR_RED,"You delivered the package and recieved 250 materials.");
PlayerInfo[playerid][pMaterials] = 250;
PlayerInfo[playerid][pGotMaterials] = 0;
}
return 1;
}
CMD:getmats(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1168.90, 1361.76, 10.50)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's pickup point!");
{
SendClientMessage(playerid,COLOR_RED,"You have gotten a materials package, deliver it to the checkpoint to recieve the materials.");
SetPlayerCheckpoint(playerid, 2179.7886,-2263.6206,14.7734, 3.0);
PlayerInfo[playerid][pGotMaterials] = 1;
}
return 1;
}
CMD:delivermats(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2179.7886,-2263.6206,14.7734)) return SCM(playerid, COLOR_WHITE, "You aren't at the material's drop-off point!");
{
if(PlayerInfo[playerid][pGotMaterials] == 0) return SendClientMessage(playerid, COLOR_GREY, "You do not have the packages.");
SendClientMessage(playerid,COLOR_RED,"You delivered the package and recieved 250 materials.");
PlayerInfo[playerid][pMaterials] += 250;
PlayerInfo[playerid][pGotMaterials] = 0;
}
return 1;
}