Advertisement
Julian90

gCheat - Ejemplo.

Dec 15th, 2012
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.64 KB | None | 0 0
  1. public OnPlayerCheat(playerid, cheatid)
  2. {
  3.     switch(cheatid)
  4.     {
  5.         case CHEAT_HEALTH:
  6.         {
  7.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para la vida!", PlayerCheat[playerid][NAME]);
  8.             SendClientMessageToAll(-1, gString);
  9.         }
  10.         case CHEAT_ARMOUR:
  11.         {
  12.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para el chaleco!", PlayerCheat[playerid][NAME]);
  13.             SendClientMessageToAll(-1, gString);
  14.         }
  15.         case CHEAT_CASH:
  16.         {
  17.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para el dinero!", PlayerCheat[playerid][NAME]);
  18.             SendClientMessageToAll(-1, gString);
  19.         }
  20.         case CHEAT_FAKE_KILL:
  21.         {
  22.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para hacer fake kill!", PlayerCheat[playerid][NAME]);
  23.             SendClientMessageToAll(-1, gString);
  24.         }
  25.         case CHEAT_INTERIOR:
  26.         {
  27.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para cambiar de interior!", PlayerCheat[playerid][NAME]);
  28.             SendClientMessageToAll(-1, gString);
  29.         }
  30.         case CHEAT_VIRTUAL_WORLD:
  31.         {
  32.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para cambiar de virtual world!", PlayerCheat[playerid][NAME]);
  33.             SendClientMessageToAll(-1, gString);
  34.         }
  35.         case CHEAT_WEAPON:
  36.         {
  37.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para obtener armas!", PlayerCheat[playerid][NAME]);
  38.             SendClientMessageToAll(-1, gString);
  39.         }
  40.         case CHEAT_AMMO:
  41.         {
  42.             format(gString, sizeof(gString), "  ¡%s ha utilizado cheats para obtener munición!", PlayerCheat[playerid][NAME]);
  43.             SendClientMessageToAll(-1, gString);
  44.         }
  45.     }
  46.     printf("[CHEAT log]: playerid %i cheatid %i", playerid, cheatid);
  47.     return 1;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement