How to fix these
#9

thats indeed strange

try that
pawn Код:
CMD:arrest(playerid, params[])
{
    if (gTeam[playerid] != TEAM_CROOKSF) return SendClientMessage(playerid, COLOR_RED, "You are not a police officer");
    if (sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Usage: /arrest [Playerid/PartOfName]");
    if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "Player not found");
    if (id == playerid) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command on yourself");
    if (gTeam[id] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED, "You cannot arrest a police officer");

    new string[58];

    GetPlayerName(playerid, string, MAX_PLAYER_NAME);
    format(string, sizeof(string), "Police Officer %s has arrested you.", string);
    SendClientMessage(id, COLOR_WHITE, string);

    GetPlayerName(id, string, MAX_PLAYER_NAME);
    format(string, sizeof(string), "You have arrested %s", string);
    SendClientMessage(playerid, COLOR_WHITE, string);

    SetTimerEx("ArrestTimer", 20000, 0, "i", playerid); //playerid ?
    SetPlayerPos(id, 264.9072, 77.9281, 1001.0391);
    ResetPlayerMoney(playerid); //playerid ?
    return 1;
}
Reply


Messages In This Thread
How to fix these - by JoeDaDude - 20.01.2010, 14:39
Re: How to fix these - by JoeDaDude - 20.01.2010, 14:42
Re: How to fix these - by WackoX - 20.01.2010, 14:53
Re: How to fix these - by JoeDaDude - 20.01.2010, 14:55
Re: How to fix these - by Nero_3D - 20.01.2010, 15:07
Re: How to fix these - by JoeDaDude - 20.01.2010, 15:12
Re: How to fix these - by Nero_3D - 20.01.2010, 15:19
Re: How to fix these - by JoeDaDude - 20.01.2010, 15:19
Re: How to fix these - by Nero_3D - 20.01.2010, 15:32
Re: How to fix these - by JoeDaDude - 20.01.2010, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)