/deal cmd with names?
#6

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;
}
pls help
Reply


Messages In This Thread
/deal cmd with names? - by niels44 - 03.02.2012, 13:26
Re: /deal cmd with names? - by -ExG-VirusKiller - 03.02.2012, 13:29
Re: /deal cmd with names? - by niels44 - 03.02.2012, 15:51
Re: /deal cmd with names? - by niels44 - 03.02.2012, 16:44
AW: Re: /deal cmd with names? - by Nero_3D - 03.02.2012, 17:05
Re: /deal cmd with names? - by niels44 - 03.02.2012, 17:24
Re: /deal cmd with names? - by niels44 - 03.02.2012, 18:40
Re: /deal cmd with names? - by niels44 - 04.02.2012, 13:22
AW: /deal cmd with names? - by Nero_3D - 04.02.2012, 14:27
Re: /deal cmd with names? - by niels44 - 04.02.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)