SHARE
TWEET

someanims

Peppery Jan 29th, 2012 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OnPlayerCommandText(playerid, cmdtext[])
  2. {      
  3.         if (strcmp("/camera", cmdtext, true, 10) == 0)
  4.         {
  5.             GivePlayerWeapon(playerid, 43, 10);
  6.             SendClientMessage(playerid, 0xFFFFFFAA, "
  7.             return 1;
  8.         }
  9.         if (strcmp("/drunk", cmdtext, true) == 0)
  10.         {
  11.         SetPlayerDrunkLevel (playerid, 3000);
  12.         SendClientMessage(playerid, 0xFFFFFFAA, "You are now drunk, don't drink and drive!");
  13.         return 1;
  14.         }
  15.         if (strcmp("/sober", cmdtext, true) == 0)
  16.         {
  17.             SetPlayerDrunkLevel(playerid, 0000);
  18.             SendClientMessage(playerid, 0xAA3333AA, "Sober Up!");
  19.             return 1;
  20.         }
  21.         if (strcmp("/eject", cmdtext, true) == 0) || (strcmp("/ej", cmdtext, true) == 0)
  22.         {
  23.             RemovePlayerFromVehicle(playerid);
  24.             SendClientMessage(playerid, 0xAA3333AA, "You have been removed from your Vehicle.");
  25.                 return 1;
  26.         }
  27.         if (strcmp("/phone", cmdtext, true) == 0)
  28.         {
  29.             SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  30.             return 1;
  31.         }
  32.         if (strcmp("/stopanim", cmdtext ,true) == 0)
  33.         {
  34.             SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  35.             ClearAnimations(playerid);
  36.             return 1;
  37.         }
  38.         return 0;
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top