Advertisement
Peppery

aspec

Jan 29th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement