Látom nem sokan csinálták meg. gyorsan össze dobom és felrakom ide neked.
Dupla hozzászólás automatikusan összefûzve. ( 2013. április 02. - 09:00:13 )
#include <a_samp>
#include <zcmd>
#define COLOR_GREEN 0x33AA33AA
#define SPECIAL_ACTION_PISSING 68
CMD:tune(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),2644.5596,-2016.4270,13.5540);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,2644.5596,-2016.4270,13.5540);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2644.5596,-2016.4270,13.5540);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:tune2(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),2392.5474,1021.2135,10.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,2392.5474,1021.2135,10.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2392.5474,1021.2135,10.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:tune3(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-1928.2428,228.4691,34.2788);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-1928.2428,228.4691,34.2788);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-1928.2428,228.4691,34.2788);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:tune4(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-2702.1089,218.7926,4.1797);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-2702.1089,218.7926,4.1797);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-2702.1089,218.7926,4.1797);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Tuning Helyhez\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:cigi(playerid, params[])
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
return 1;
}
CMD:ital(playerid, params[]) //Sokat iszol akkor berugsz.
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 500);
return 1;
}
CMD:pisi(playerid, params[])
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
return 1;
}
CMD:fekszik(playerid, params[])
{
ApplyAnimation(playerid,\"PED\",\"KO_skid_front\",4.1,0,1,1,1,0);
return 1;
}
CMD:stop(playerid, params[]) // anim megállitása
{
ClearAnimations(playerid);
return 1;
}
Mod Aljára rakd be.