Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp("/s", cmdtext, true))
- {
- new Float:x,Float:y,Float:z;
- new Float:Angle;
- GetVehicleZAngle(playerid, Angle);
- GetPlayerPos(playerid,x,y,z);
- SetPVarFloat(playerid,"A",Angle);
- SetPVarFloat(playerid,"X",x);
- SetPVarFloat(playerid,"Y",y);
- SetPVarFloat(playerid,"Z",z);
- if(Posaved[playerid] == 0)
- {
- Posaved[playerid] = 1;
- }
- return 1;
- }
- if(!strcmp("/r", cmdtext, true))
- {
- if(Posaved[playerid] == 1)
- {
- SetPlayerPos(playerid, GetPVarFloat(playerid,"X"), GetPVarFloat(playerid,"Y"), GetPVarFloat(playerid,"Z"));
- SetVehicleZAngle(playerid,GetPVarFloat(playerid,"A"));
- }
- else SendClientMessage(playerid, Error, "You don't have Pos in Database, try {33CCCC}/s");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement