Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("\n-----------Ped_Dep's script----------"); //A simple script, but don't edit the script!
- print(" Simple Sync System\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n-----------Ped_Dep's script----------"); //Don't remove the Credits! You can make your own script if you want to.
- print(" Simple Sync System");
- print(" --- Unloaded --- ");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/sync", cmdtext, true, 10) == 0)
- {
- new Float:X;
- new Float:Y;
- new Float:Z;
- TogglePlayerControllable(playerid,1);
- GetPlayerPos(playerid,X,Y,Z);
- SetPlayerPos(playerid,X,Y,Z+2);
- ClearAnimations(playerid);
- PlayerPlaySound(playerid, 1137, X, Y, Z);
- SendClientMessage(playerid,0x00FFFFFF,"You are synced.");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment