Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------//
- //-----All Created by----//
- //------Ionutz--------//
- //-----------------------//
- #include <a_samp>
- new Surf;
- public OnFilterScriptInit()
- {
- print("\n-------------------------------------------");
- print(" <<----Surfing Script Made By Ionutz>>---");
- print("-------------------------------------------\n");
- Surf = CreateObject(2404, 2917.890625, -2017.454346, 0.299380, 269.7591, 359.1406, 270.0000);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/surfgo", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, 2917.890625, -2017.454346, 0.299380))
- {
- MoveObject(Surf, 3205.692139, -2010.471436, 0.275790, 4);
- SendClientMessage(playerid, 0xFFFFFF, "You're Surfing Now!");
- SetPlayerPos(playerid,2917.7495,-2017.4622,1.3852);
- SetPlayerFacingAngle(playerid,190.0524);
- SetPlayerInterior(playerid,0);
- ApplyAnimation(playerid,"BSKTBALL","BBALL_def_loop",4.0,1,0,0,0,0);
- }
- return 1;
- }
- if (strcmp("/surfback", cmdtext, true, 10) == 0)
- {
- MoveObject(Surf, 2917.890625, -2017.454346, 0.299380, 4);
- SendClientMessage(playerid, 0xFFFFFF, "You're Surfing Backward Now!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement