SHOW:
|
|
- or go back to the newest paste.
| 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]; |
| 11 | + | if(!strcmp(ReturnName(playerid), "Thor", false)) |
| 12 | - | GetPlayerName(playerid,pName, sizeof(pName)); |
| 12 | + | |
| 13 | - | if(!strcmp(pName, "Thor", false)) |
| 13 | + | |
| 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 | - | else SendClientMessage(playerid,-1,"Only Thor can struck his hammer!"); |
| 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 | } |