Guest User

Untitled

a guest
May 9th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. forward THUNDER(); //OnTop!
  2. //OnPlayerCommandText:
  3. public OnPlayerCommandText(playerid, cmdtext[])
  4. {
  5. dcmd(thor, 4, cmdtext);
  6. return 0;
  7. }
  8.  
  9. dcmd_thor(playerid, params[])
  10. {
  11. new pName[24];
  12. GetPlayerName(playerid,pName, sizeof(pName));
  13. if(!strcmp(pName, "Thor", false))
  14. {
  15. SetWeather(16); //Change This to whatever ID of the weather you want!
  16. SetWorldTime(0); //Midnight Time!
  17. SendClientMessageToAll(-1,"Thor has struck his hammer");
  18. SetTimer("THUNDER", 2000, false); //2Sex timer starts!
  19. }
  20. else SendClientMessage(playerid,-1,"Only Thor can struck his hammer!");
  21. return 1;
  22. }
  23. //Buttom of your script:
  24. public THUNDER()
  25. {
  26. SetWeather(16); //Change This to whatever ID of the weather you want!
  27. SetWorldTime(12); //DayTime!
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment