SHARE
TWEET

aspec

Peppery Jan 29th, 2012 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3.         if (strcmp("/aspec", cmdtext, true, 10) == 0)
  4.         {
  5.                 if(IsPlayerAdmin(playerid) == true)
  6.                 {
  7.                 TogglePlayerSpectating(playerid, 1);
  8.                         PlayerSpectatePlayer(playerid, targetid);
  9.                         PlayerSpectateVehicle(playerid, specvehicleid);
  10.                 }
  11.                 if (!IsPlayerAdmin(playerid))
  12.                 {
  13.                     SendClientMessage(playerid, 0xAA3333AA, "Invalid Command.");
  14.                 }
  15.                 return 1;
  16.         }
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