// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include #include #include public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } CMD:getcpos(playerid, params[]) { new Float:cxp, Float:cyp, Float:czp, str[256], fName[60]; if(sscanf(params, "s[60]", fName)) return SendClientMessage(playerid, 0xFF0000, "Usage: /getcpos (coordinate_name) {FFFFFF} | Example: /getcpos sf camera point"); GetPlayerCameraPos(playerid, cxp, cyp, czp); format(str, sizeof(str), "Camera coordinate name:%s | X:%f | Y:%f |Z:%f | Function: SetPlayerCameraPos(playerid, %f, %f, %f); /***/ \r\n", fName, cxp, cyp, czp, cxp, cyp, czp); new File:cpos = fopen("Camera_Coords.txt", io_append); if(cpos) { fwrite(cpos, str); fclose(cpos); SendClientMessage(playerid, 0xFF0000, "Camera position successfully generated!"); } return 1; } CMD:getfangle(playerid, params[]) { new Float:ang, str[256], fName[60]; if(sscanf(params, "s[60]", fName)) return SendClientMessage(playerid, 0xFF0000, "Usage: /getfangle (coordinate_name) {FFFFFF} | Example: /getfangle fangle1 point"); GetPlayerFacingAngle(playerid, ang); format(str, sizeof(str), "Facing Angle name:%s | Angle:%f | Function: SetPlayerFacingAngle(playerid, %f); /***/ \r\n", fName, ang, ang); new File:cpos = fopen("Facing_Angle.txt", io_append); if(cpos) { fwrite(cpos, str); fclose(cpos); SendClientMessage(playerid, 0xFF0000, "Facing Angle successfully generated!"); } return 1; }