Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp(cmdtext, "n", true)==0)
- {
- GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
- GetPlayerFacingAngle(playerid, PosA[playerid]);
- SendClientMessage(playerid, COR, "Você guardou a posição use 'n'!");
- PosI[playerid] = (GetPlayerInterior(playerid));
- PlayerPlaySound(playerid, 1137 , 0.0, 0.0, 0.0);
- return 1;
- }
- if (strcmp(cmdtext, "y", true)==0)
- {
- if (!floatsqroot(PosX[playerid]+PosY[playerid]+PosZ[playerid]))
- {
- return SendClientMessage(playerid, COR, "Deve salvar antes!'n'");
- }
- else
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- SetVehiclePos(GetPlayerVehicleID(playerid), PosX[playerid], PosY[playerid], PosZ[playerid]);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), PosA[playerid]);
- SetCameraBehindPlayer(playerid);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), PosI[playerid]);
- }
- else
- {
- EnCoche[playerid] = false;
- SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
- SetPlayerFacingAngle(playerid, PosA[playerid]);
- SetCameraBehindPlayer(playerid);
- }
- PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
- SetPlayerInterior(playerid, PosI[playerid]);
- SendClientMessage(playerid, COR, "Posição carregada com sucesso!!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment