#1

Can someone make me a script with Teams of Police(blue) and Civilian(white) with colors?
and if civilian robs player set player wanted to 2 stars and becomes yellow, if they rob the police set player wanted to 5 stars and the player becomes red.
Here's my code of rob command:
pawn Код:
CMD:rob(playerid, params[])
{
    new string[128], pID, Float:idPos[3];
    if(sscanf(params, "u", pID)) return SendClientMessage(playerid, COLOR_INDIANRED, "USAGE /rob <playerid>");
    if (pID == playerid) return SendClientMessage(playerid, COLOR_RED, "You cannot rob yourself.");
    if (IsPlayerInAnyVehicle(pID) || IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "Player must be on foot.");
    GetPlayerPos(pID, idPos[0], idPos[1], idPos[2]);
    if (!IsPlayerInRangeOfPoint(playerid, 10.0, idPos[0], idPos[1], idPos[2])) return SendClientMessage(playerid, -1, "Player is not close enough to rob");

    new cash = GetPlayerMoney(pID);
    new Float:steal =  cash * 0.10;

    format(string, sizeof(string), "You have stolen %d from ID %i", floatround(steal), pID);
    SendClientMessage(playerid, -1, string);

    GivePlayerMoney(playerid, floatround(steal));
    return 1;
}
If you see something wrong with the command , if you have time correct it pls
Thank You in advance.
Reply
#2

No. This isn't script request thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)