Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
- {
- if(PlayerInfo[playerid][pAdmin] > 0 && AdminDuty[playerid] == 1)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, fX, fY, fZ+5);
- GetVehiclePos(tmpcar, old_veh_pos[tmpcar][0], old_veh_pos[tmpcar][1], old_veh_pos[tmpcar][2]);
- }
- else
- {
- SetPlayerPosFindZ(playerid, fX, fY, fZ+5);
- }
- }
- else if(InHQ[playerid] == -1 && InHouse[playerid] == -1 && InBussines[playerid] == -1) {
- GetPlayerPos(playerid, TpTestx[playerid], TpTesty[playerid], TpTestz[playerid]);
- SetTimerEx("TpTest",4000, false, "i", playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement