03.02.2012, 17:24
not working...i have now this:
pawn Код:
enum Deals
{
Name[50],
Float:xPos,
Float:yPos,
Float:zPos
}
stock const Jobs[][Deals] =
{
{ "Hauling Drugs", 0.00, 0.00, 0.00 },
{ "Hauling Weapons", 0.00, 0.00, 0.00 },
{ "Hauling Whores", 0.00, 0.00, 0.00 },
{ "Hauling Cars", 0.00, 0.00, 0.00 }
};
pawn Код:
CMD:deal(playerid, params[])
{
new pick = random(sizeof(Jobs));
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not in any vehicle");
{
SetPlayerCheckpoint(playerid, Jobs[pick][xPos], Jobs[pick][yPos], Jobs[pick][zPos], 7.0);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FF0000}Player %s is now Hauling %d",pName, Jobs[pick][Name]);
SendClientMessageToAll(playerid, string);
}
return 1;
}

