SHOW:
|
|
- or go back to the newest paste.
1 | if(strcmp(cmd,"/gangshake",true)==0) | |
2 | { | |
3 | if(IsPlayerConnected(playerid)) | |
4 | { | |
5 | tmp = strtok(cmdtext, idx); | |
6 | if(!strlen(tmp)) | |
7 | { | |
8 | SendClientMessage(playerid, GREY, "/gangshake [playerid] [1 to 8]"); | |
9 | return 1; | |
10 | } | |
11 | new playa = ReturnUser(tmp); | |
12 | tmp = strtok(cmdtext, idx); | |
13 | if(!strlen(tmp)) | |
14 | { | |
15 | SendClientMessage(playerid, GREY, "/gangshake [playerid] [1 to 8]"); | |
16 | return 1; | |
17 | } | |
18 | new kind = strval(tmp); | |
19 | if(kind < 1 || kind > 8) | |
20 | { | |
21 | SendClientMessage(playerid, GREY, "availble numbers from 1 to 8"); | |
22 | return 1; | |
23 | } |