dcmd_highlight(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) { if(!strlen(params)) return SendClientMessage(playerid,red,"USAGE: /highlight [playerid]"); new player1, playername[MAX_PLAYER_NAME], string[128]; player1 = strval(params); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { GetPlayerName(player1, playername, sizeof(playername)); if(PlayerInfo[player1][blip] == 0) { CMDMessageToAdmins(playerid,"HIGHLIGHT"); PlayerInfo[player1][pColour] = GetPlayerColor(player1); PlayerInfo[player1][blip] = 1; BlipTimer[player1] = SetTimerEx("HighLight", 1000, 1, "i", player1); format(string,sizeof(string),"You have highlighted %s's marker", playername); } else { KillTimer( BlipTimer[player1] ); PlayerInfo[player1][blip] = 0; SetPlayerColor(player1, PlayerInfo[player1][pColour] ); format(string,sizeof(string),"You have stopped highlighting %s's marker", playername);
dcmd_bounty(playerid, params[]) { new tmp[256], idx, pid, pmoney; tmp = strtok(params, idx); if(!strlen(tmp)) { Usage(playerid, "Usage: /bounty [id]"); return 1; } pid = strval(tmp); if(pid == playerid) { Error(playerid, "You can't set bounty on yourself!"); return 1; } if(!IsPlayerConnected(pid)) { Error(playerid, "Error: Incorrect playerid!"); return 1; } pmoney = GetPlayerMoney(playerid); if(pmoney <= 4999) { Error(playerid, "Error: You don't have enough money!"); return 1; } GivePlayerMoney(playerid, -5000); Bounty[pid] = 1; SetPlayerColor(pid, COLOR_WHITE); SetPlayerArmour(pid, 100); SetPlayerHealth(pid, 100); GivePlayerWeapon(pid, 38, 200); bigdollar = CreateObject(1274, 0, 0, 0, 0, 0, 0); AttachObjectToPlayer(bigdollar, pid, 0, 0, 2, 0, 0, 0); return 1; } |