SHOW:
|
|
- or go back to the newest paste.
1 | CMD:act(playerid, params[]) | |
2 | { | |
3 | - | if(sscanf(params,"s", params)) return SendClientMessage(playerid, COLOR_RED, "/Act [Text]"); |
3 | + | new sAct[26]; |
4 | - | if(!strcmp(params, "start", true)) |
4 | + | if(sscanf(params,"s[26]", sAct)) return SendClientMessage(playerid, COLOR_RED, "/Act [Text]"); |
5 | if(!strcmp(sAct, "start", true)) | |
6 | - | new text; |
6 | + | |
7 | - | if(sscanf(params,"s",text)) return SendClientMessage(playerid, COLOR_RED, "/Act Start [Text]"); |
7 | + | new text[26]; |
8 | if(sscanf(params,"s[26]",text)) return SendClientMessage(playerid, COLOR_RED, "/Act Start [Text]"); | |
9 | if(activity == 1) return SendClientMessage(playerid, COLOR_RED, "!יש כבר פעילות מופעלת כרגע"); | |
10 | - | format(str, sizeof(str),":התחיל פעילות \"%s\" האדמין",GetName(playerid)); |
10 | + | |
11 | - | SendClientMessageToAll(COLOR_TOV,str); |
11 | + | format(str, sizeof(str),":התחיל פעילות \"%s\" האדמין",GetName(playerid)); |
12 | - | format(str, sizeof(str)," \"%s\" ",text); |
12 | + | SendClientMessageToAll(COLOR_TOV,str); |
13 | - | SendClientMessageToAll(0x5E36FFFF,str); |
13 | + | format(str, sizeof(str)," \"%s\" ",text); |
14 | - | SendClientMessageToAll(COLOR_GREEN,"/Act Join :להצטרפות רשמו את הפקודה"); |
14 | + | SendClientMessageToAll(0x5E36FFFF,str); |
15 | - | SendClientMessageToAll(0x000000ff,"••••••••••••••••••••••••••••••••••"); |
15 | + | SendClientMessageToAll(COLOR_GREEN,"/Act Join :להצטרפות רשמו את הפקודה"); |
16 | - | activity = 1; |
16 | + | SendClientMessageToAll(0x000000ff,"••••••••••••••••••••••••••••••••••"); |
17 | - | AntiTK = false; |
17 | + | activity = 1; |
18 | - | ActiveName = text; |
18 | + | AntiTK = false; |
19 | - | PlayerName = GetName(playerid); |
19 | + | ActiveName = text; |
20 | - | JoinWithCar = false; |
20 | + | PlayerName = GetName(playerid); |
21 | - | ActivityTeleports = 1; |
21 | + | JoinWithCar = false; |
22 | - | for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) ActQ[i] = 1; |
22 | + | ActivityTeleports = 1; |
23 | - | Interior_World[0] = GetPlayerVirtualWorld(playerid); |
23 | + | for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) ActQ[i] = 1; |
24 | - | Interior_World[1] = GetPlayerInterior(playerid); |
24 | + | Interior_World[0] = GetPlayerVirtualWorld(playerid); |
25 | - | SetTimer("GetPos", 500, 1); |
25 | + | Interior_World[1] = GetPlayerInterior(playerid); |
26 | - | } |
26 | + | SetTimer("GetPos", 500, 1); |
27 | } | |
28 | } |