Jump to content

[REZOLVAT] loadfs/unloadfs direct din joc


CosminAK
 Share

Recommended Posts

CMD:loadfs(playerid, params[]) 
{
new cmd[30];
if(sscanf(params, "s[30]", cmd)) return SCM(playerid, 0xFFFFFFFF, "/loadfs <FS Name>");
new str[128];
format(str, 128, "loadfs %s", cmd);
SendRconCommand(str);
return 1;
}


CMD:unloadfs(playerid, params[]) 
{
new cmd[30];
if(sscanf(params, "s[30]", cmd)) return SCM(playerid, 0xFFFFFFFF, "/unloadfs <FS Name>");
new str[128];
format(str, 128, "unloadfs %s", cmd);
SendRconCommand(str);
return 1;
}

Vei avea nevoie si de libraria sscanf.

Edited by iMatt

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

In cazul in care nu folosesti RCON, poti incerca comenzile de la mine.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

CMD:loadfs(playerid, params[]) 
{
new cmd[30];
if(sscanf(params, "s[30]", cmd)) return SCM(playerid, 0xFFFFFFFF, "/loadfs <FS Name>");
new str[128];
format(str, 128, "loadfs %s", cmd);
SendRconCommand(str);
return 1;
}


CMD:unloadfs(playerid, params[]) 
{
new cmd[30];
if(sscanf(params, "s[30]", cmd)) return SCM(playerid, 0xFFFFFFFF, "/unloadfs <FS Name>");
new str[128];
format(str, 128, "unloadfs %s", cmd);
SendRconCommand(str);
return 1;
}

Vei avea nevoie si de libraria sscanf.

 

ms

Link to comment
Share on other sites

CMD:loadfs(playerid, params[]) 
{
new cmd[30];
if(sscanf(params, "s[30]", cmd)) return SCM(playerid, 0xFFFFFFFF, "/loadfs <FS Name>");
new str[128];
format(str, 128, "loadfs %s", cmd);
SendRconCommand(str);
return 1;
}


CMD:unloadfs(playerid, params[]) 
{
new cmd[30];
if(sscanf(params, "s[30]", cmd)) return SCM(playerid, 0xFFFFFFFF, "/unloadfs <FS Name>");
new str[128];
format(str, 128, "unloadfs %s", cmd);
SendRconCommand(str);
return 1;
}

Vei avea nevoie si de libraria sscanf.

 

dar cum pot face o verificare sa stiu daca filterscriptul se incarca sau nu

Link to comment
Share on other sites

dar cum pot face o verificare sa stiu daca filterscriptul se incarca sau nu

FS-ul se incarca imediat dupa ce ai folosit comanda, poti verifica in consola daca l-a incarcat cu succes.

 

N-are rost sa pui comenzile alea. Fa cum ti-am zis eu. Umpli gm-ul cu comenzi inutile

Nu toata lumea foloseste sistemul de RCON.

Edited by iMatt

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...