Notes
Notes - notes.io |
#include <a_samp>
#include <zcmd>
new takingselfie[MAX_PLAYERS];
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xFF0000AA
#pragma tabsize 0
#if defined FILTERSCRIPT
new Text:Textdraw2;
new Float:x[MAX_PLAYERS],Float:y[MAX_PLAYERS],Float:z[MAX_PLAYERS],Float:a[MAX_PLAYERS];
new Float:nx[MAX_PLAYERS],Float:ny[MAX_PLAYERS],Float:nz[MAX_PLAYERS];
new right[MAX_PLAYERS];
new left[MAX_PLAYERS];
public OnFilterScriptInit()
{
* * * *print("n--------------------------------------");
* * * *print(" Selfie FilterScript By: ");
* * * *print("--------------------------------------n");
* * * *for(new i =0; i<MAX_PLAYERS;i++)
* * * * * *takingselfie[i] = 0;
* * * *Textdraw2 = TextDrawCreate(227.000000, 10.000000, "~r~F8 tusuna basarak selfie cekin.~n~~n~~y~6 ve 4 tusuna basarak kamerayi oynatabilirsiniz.~n~~n~~g~/selfie cekimi iptal edebilirsiniz.");
* * * *TextDrawBackgroundColor(Textdraw2, 255);
* * * *TextDrawFont(Textdraw2, 1);
* * * *TextDrawLetterSize(Textdraw2, 0.500000, 1.300000);
* * * *TextDrawColor(Textdraw2, -16776961);
* * * *TextDrawSetOutline(Textdraw2, 0);
* * * *TextDrawSetProportional(Textdraw2, 1);
* * * *TextDrawSetShadow(Textdraw2, 1);
* * * *TextDrawSetSelectable(Textdraw2, 0);
* * * *return 1;
}
public OnFilterScriptExit()
{
* *for(new i =0; i<MAX_PLAYERS;i++)
* * * * * *takingselfie[i] = 0;
* * * *return 1;
}
#else
main()
{
* * * *print("n--------------------------------------");
* * * *print(" Selfie FilterScript By: ");
* * * *print("--------------------------------------n");
}
#endif
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
* * * *if(takingselfie[playerid] == 1)
* * * *{
* * * * * * * *if(newkeys & KEY_ANALOG_RIGHT)
* * * * * * * *{
* * * * * * * * * *if(right[playerid] < 4)
* * * * * * * * * *{
* * * * * * * * * * * * * *InterpolateCameraPos(playerid,nx[playerid],ny[playerid],nz[playerid],nx[playerid],ny[playerid] + 0.1,nz[playerid], 1000,CAMERA_MOVE);
* * * * * * * * * * * * * *ny[playerid] = ny[playerid] + 0.1;
* * * * * * * * * * * * * *right[playerid] ++;
* * * * * * * * * * * * * *left[playerid] --;
* * * * * * * * * * * *}
* * * * * * * *}
* * * * * * * *if(newkeys & KEY_ANALOG_LEFT)
* * * * * * * *{
* * * * * * * * * *if(left[playerid] < 7)
* * * * * * * * * *{
* * * * * * * * * * * * * *InterpolateCameraPos(playerid,nx[playerid],ny[playerid],nz[playerid],nx[playerid],ny[playerid] - 0.1,nz[playerid], 1000,CAMERA_MOVE);
* * * * * * * * * * * * * *ny[playerid] = ny[playerid] - 0.1;
* * * * * * * * * * * * * *right[playerid] --;
* * * * * * * * * * * * * * * *left[playerid] ++;
* * * * * * * * * * * *}
* * * * * * * *}
* * * *}
* * * *return 1;
}
CMD:selfie(playerid,params[])
{
* * * *if(takingselfie[playerid] == 0)
* * * *{
* * * * * *TogglePlayerControllable(playerid,0);
* * * * * * * *GetPlayerPos(playerid, x[playerid], y[playerid], z[playerid]);
* * * * * * * *SetPlayerFacingAngle(playerid,269.9766);
* * * * * * * *GetPlayerFacingAngle(playerid, a[playerid]);
* * * * * * * *nx[playerid] = x[playerid]+1.4;
* * * * * * * *ny[playerid] = y[playerid];
* * * * * * * *nz[playerid] = z[playerid]+1;
* * * * * * * *SetPlayerCameraPos(playerid,nx[playerid],ny[playerid],nz[playerid]);
* * * * * * * *SetPlayerCameraLookAt(playerid,x[playerid],y[playerid],z[playerid]+1);
* * * * * *ApplyAnimation(playerid, "PED", "gang_gunstand", 4.1, 1, 1, 1, 1, 1, 1);
* * * * * *TextDrawShowForPlayer(playerid,Textdraw2);
* * * * * * * *takingselfie[playerid] = 1;
* * * * * * * *right[playerid] = 0;
* * * * * * * *left[playerid] = 0;
* * * * * * * *return 1;
* * * *}
* *if(takingselfie[playerid] == 1)
* * * *{
* * * * * *TogglePlayerControllable(playerid,1);
* * * * * * * *SetCameraBehindPlayer(playerid);
* * * * * *TextDrawHideForPlayer(playerid,Textdraw2);
* * * * * *takingselfie[playerid] = 0;
* * * * * *ClearAnimations(playerid);
* * * * * *return 1;
* * * *}
* *return 1;
}
|
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team