25.02.2014, 21:00
Quote:
Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/congelartds", true) == 0)//COMANDO { for(new i = 0; i <= MAX_PLAYERS; i++)I = TODOS { TogglePlayerControllable(i,0);//CONGELA return 1; } } if(strcmp(cmdtext, "/desongelartds", true) == 0)//COMANDO { for(new i = 0; i <= MAX_PLAYERS; i++)// I = TODOS { TogglePlayerControllable(i,1);I = TODOS return 1; } } return 0; } ![]() |
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/congelartds", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
TogglePlayerControllable(i, 0);
return 1;
}
if(strcmp(cmdtext, "/desongelartds", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
TogglePlayerControllable(i, 1);
return 1;
}
return 0;
}