Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. COMMAND:ffa(playerid, params[])
  2. {
  3. new tmp[ 10 ];
  4. if(sscanf(params, "s", tmp)) return SCP(playerid, "lvpd");
  5. if(!strcmp(tmp, "d", true, 5))
  6. {
  7. if(pInfo[playerid][pLevel] >= 2 || IsPlayerAdmin(playerid))
  8. {
  9. for(new i = 0; i < MAX_PLAYERS; i++)
  10. {
  11. if(IsPlayerConnected(i))
  12. {
  13. TogglePlayerControllable(i,0);
  14. }
  15. }
  16. SendClientMessageToAll(0xff0000AA, "After five seconds you will be spawned in the LVPD area!");
  17. SendClientMessage(playerid, 0xff0000AA, "[SERVER]Spawn-positions set to LVPD area.");
  18. SetTimer("CountDown", 5000, false);
  19. normal = 1;
  20. minigame = 0;
  21. return 1;
  22. }
  23. else return SendClientError(playerid, CANT_USE_CMD);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement