12.07.2014, 06:15
Hi all , This Turorial for " How To Add A Teleport Command /Ramp Teleport Command
This System Good For Role Play Gamemode
1st :-
2nd:- Paste This On " OnPlayerCommand " This is TelePort System eg :- /sfa
And This is My Ramp System
And Some Player don't Know How to Get
This is Easy ,
1st :- Goto samp_debug or Your Server
2nd :- Select a Place That Where You Want to Teleport Position
3rd :- Keep That Place and Type /save ,it shows "OnPlayer Foot Position Saved "
4th :- Goto " Documents \ GTA San Andreas User Files \ SAMP \ savedpositions " [Click to "savedpositions" Text File]
5th :-And it will a Code like
6th :- In This case
AddPlayerClass(296,-1728.7698,-364.0937,17.1406,264.6061,0,0,0,0,0,0); //
Green :- Tx[playerid] =-1728.7698; {x}
Rose :- Ty[playerid] =-364.0937; {y}
DeepSkyBlue :- Tz[playerid] =17.1406; {z}
And Keep Ti[playerid] = 0; as Like This
If I Has Helped You +Rep Me
Good Luck With Your Server
This System Good For Role Play Gamemode
1st :-
Код:
#include <a_samp>
Код:
CMD:sfa(playerid,params[]) { #pragma unused params if(AccInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!"); TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid); tseconds[playerid] = 6; format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1); if(AccInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring); Tx[playerid] =-1657.5400; Ty[playerid] =-164.9457; Tz[playerid] =14.1484; Ti[playerid] = 0; new string[128]; new dsname[MAX_PLAYER_NAME]; format(telestring,43,"San Fierro Airport!"); GetPlayerName(playerid, dsname, sizeof(dsname)); format(string, sizeof(string), "%s has just teleported to SF Airport /sfa", dsname); SendClientMessageToAll(COLOR_YELLOW, string); SetTimerEx("setstunt",3000,0,"i", playerid); ShowPlayerDialog( playerid, DIALOGID3+40, DIALOG_STYLE_LIST, "Vehicle Types", "nBikes\nConvertibles\nIndustrial\nLowriders\nOff Road\nPublic Service Vehicles\nSaloons\nSport Vehicles\nStation Wagons", "Select", "Cancel" ); return 1; }
Код:
CMD:kingramp(playerid,params[]) { #pragma unused params if(AccInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!"); TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid); tseconds[playerid] = 6; format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1); if(AccInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring); Tx[playerid] =-1728.7698; Ty[playerid] =-364.0937; Tz[playerid] =17.1406; Ti[playerid] = 0; new string[128]; new dsname[MAX_PLAYER_NAME]; format(telestring,43,"$tyli$hKing's Sexy Ramp!"); GetPlayerName(playerid, dsname, sizeof(dsname)); format(string, sizeof(string), "[SEXYRAMP] %s has just teleported to $tyli$hKing's Sexy Ramp <3 /kingramp", dsname); SendClientMessageToAll(red, string); SetTimerEx("setstunt",3000,0,"i", playerid); ShowPlayerDialog( playerid, DIALOGID3+40, DIALOG_STYLE_MSGBOX, "Welcome", "Welcome %s To $tylishKing's Sexy Ramp", "Ok", "Cancel" ); return 1; }
Код:
Tx[playerid] =-1728.7698; Ty[playerid] =-364.0937; Tz[playerid] =17.1406; Ti[playerid] = 0;
1st :- Goto samp_debug or Your Server
2nd :- Select a Place That Where You Want to Teleport Position
3rd :- Keep That Place and Type /save ,it shows "OnPlayer Foot Position Saved "
4th :- Goto " Documents \ GTA San Andreas User Files \ SAMP \ savedpositions " [Click to "savedpositions" Text File]
5th :-And it will a Code like
Код:
AddPlayerClass(296,-1728.7698,-364.0937,17.1406,264.6061,0,0,0,0,0,0); //
AddPlayerClass(296,-1728.7698,-364.0937,17.1406,264.6061,0,0,0,0,0,0); //
Green :- Tx[playerid] =-1728.7698; {x}
Rose :- Ty[playerid] =-364.0937; {y}
DeepSkyBlue :- Tz[playerid] =17.1406; {z}
And Keep Ti[playerid] = 0; as Like This
If I Has Helped You +Rep Me
Good Luck With Your Server