My problem about dcmd
#2

pawn Код:
dcmd_taze(playerid, params[])
{
    new
        id,
        Float:health;
       
    if (Aile[playerid] =! POLICE || Aile[playerid] =! POLICELEADER ) SendClientMessage(playerid, gri, "* You are not a cop!");
    if (!sscanf(params, "u", id)) SendClientMessage(playerid, gri, "USAGE: /taze [id]");
    if (!IsPlayerConnected(id)) SendClientMessage(playerid, gri, "* This playerID does not exist.");
    if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, gri, "* Wanna taze yourself!?");
    if (GetDistanceBetweenPlayers(playerid, id) > 5.00) SendClientMessage(playerid, gri, "* That player is too far away.");
    else
    {
        GameTextForPlayer(id,"~r~!! TAZED !!",5000,3);
        soksuresi = SetTimerEx("TazeTime", 15000, 0, "i", playerid);
        GetPlayerHealth(playerid,health);
        SetPlayerHealth(playerid,health-10);
    }
    return 1;
}
Reply


Messages In This Thread
My problem about dcmd - by Nmancer - 23.05.2009, 18:44
Re: My problem about dcmd - by woot - 23.05.2009, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)