GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: ZyZu. - 2012. július 14. - 18:30:51

Cím: tipp
Írta: ZyZu. - 2012. július 14. - 18:30:51
Üdv valaki nem tudna nekem készíteni egy tipp parancsot? Vagyis be írja /tipp [Ötleted] majd ezt elmenti egy bízonyos txt fájlba..?
Köszönöm a segítséget! :)
Cím: tipp
Írta: CrazyBoy - 2012. július 14. - 20:53:24
CMD:tipp(playerid,params[])
{
new name[24];
GetPlayerName(playerid,name,24);
format(string,128,\"\\n%s tippje: %s\",name,params);
new File:lFile;
SendClientMessage(playerid,-1,\"Tipp elküldve.\");
lFile = fopen(\"Tippek.txt\", io_append);
if (lFile)
{
fwrite(lFile, params);
fwrite(lFile,\"\\r\\n\");
fclose(lFile);
}
return 1;
}