SHOW:
|
|
- or go back to the newest paste.
| 1 | if (strcmp(cmd, "/zspeed", true)==0) | |
| 2 | {
| |
| 3 | tmp = strtok(cmdtext, idx); | |
| 4 | if (!strlen(tmp)) | |
| 5 | {
| |
| 6 | SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zspeed [speed]"); | |
| 7 | return 1; | |
| 8 | } | |
| 9 | Zspeed=floatstr(tmp); | |
| 10 | return 1; | |
| 11 | } | |
| 12 | ||
| 13 | ||
| 14 | =================================== | |
| 15 | ||
| 16 | CMD:zspeed(playerid,params[]) | |
| 17 | {
| |
| 18 | new Float:tmp; | |
| 19 | if(sscanf(params,"f",tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zspeed [speed]"); | |
| 20 | Zspeed=tmp; | |
| 21 | return 1; | |
| 22 | } |