- void newesp()
 - {
 - hud_player_info_t pInfo;
 - gEngfuncs.pfnGetPlayerInfo(pLocal->index, &pInfo);
 - int iOwnTeam = GetMyTeam(pInfo.model); // Team holen
 - float scr33n[10];
 - for (int i = 0; i < 33; i++)
 - {
 - // Wir selbst wollen nicht auf uns zielen
 - if (pLocal->index == i) continue;
 - // Entity holen und prüfen
 - pEnt = gEngfuncs.GetEntityByIndex(i);
 - if (!isValidEnt(pEnt)) continue;
 - // PlayerInfo und Team auslesen
 - gEngfuncs.pfnGetPlayerInfo(i, &pInfo);
 - int iTeam = GetMyTeam(pInfo.model);
 - if (CalcScreen(pEnt->origin, scr33n))
 - {
 - // Er ist sichtbar!
 - if (iTeam == 1)
 - {
 - DrawBox(scr33n[0], scr33n[1], 255, 0, 0, 255, 20, 3);
 - }
 - else if (iTeam == 2)
 - {
 - DrawBox(scr33n[0], scr33n[1], 0, 0, 255, 255, 20, 3);
 - }
 - else
 - {
 - continue;
 - }
 - }
 - }
 - }
 

By: bl00b | Date: Dec 30 2009 23:24 | Format: None | Expires: never | Size: 829 B | Hits: 1237
Latest pastes
7 months ago
9 months ago
24 months ago
26 months ago
30 months ago