Advertisement
AshBFunky

Untitled

May 9th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     if(!strcmp(ReturnName(playerid), "Thor", false))
  12.     {
  13.         SetWeather(16); //Change This to whatever ID of the weather you want!
  14.         SetWorldTime(0); //Midnight Time!
  15.         SendClientMessageToAll(-1,"Thor has struck his hammer");
  16.     SetTimer("THUNDER", 2000, false); //2Sex timer starts!
  17.     }
  18.     else SendClientMessage(playerid,-1,"Only Thor can strike his hammer!");
  19.     return 1;
  20. }
  21. //Buttom of your script:
  22. public THUNDER()
  23. {
  24.     SetWeather(16); //Change This to whatever ID of the weather you want!
  25.     SetWorldTime(12); //DayTime!
  26.     return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement