25.02.2014, 02:21
Estou tentando achar algum comando relacionado a isso que estou tentando achar mais nгo consigo alguйm pode disponibilizar ae ?, Se for possнvel й Claro!.
Como o AFerreira basta usar essas duas coisas, vou mostrar um exemplo para vocк. pawn Code:
|
Leia sobre https://sampforum.blast.hk/showthread.php?tid=290735 para usar em todos.
|
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; }
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; } |
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;
}
isso nem vai compilar cara
pawn Code:
|