24.01.2010, 13:53
Код:
//|-----------------------------------------| //| Copyright ©R3SpaWn | //| No cambiar creditos. | //| Gracias. | //|-----------------------------------------| // Este filescript sirve para que un jugador hable en distintos idiomas. // Italiano,Japonиs,Chino,Mexicano,etc.. //Script realizado para SD-RP [www.sd-rp.com #include <a_samp> #define FILTERSCRIPT #define print #if defined FILTERSCRIPT #if defined print public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Filterscript lenguajes por R3SpaWn"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Filterscript lenguajes por R3SpaWn "); print(" No copiar creditos. "); print("----------------------------------\n"); return 1; } #endif //-----------------[ITALIANO]--------------- if(strcmp(cmd, "/it", true) == 0); { if(IsPlayerConnected(playerid)) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, "[Uso:] /ita [Texto]"); return 1; } format(string, sizeof(string), "[ITA] %s dice: %s", GetPlayerNameEx(playerid), result); ProxDetector(5.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE); } return 1; } //----------[Scripteado por R3SpaWn para SD-RP]--------------||[www.sd-rp.com]||