Jump to content

Help Door [MoveObject] !!


QoRaY

Recommended Posts

SA-MP Code;

on top of script:

Code:

new Gateclan; 
new Gatelift; 

under ongamemodeinit

Code:

//gate's 
    Gateclan = CreateObject(969, -715.559143, 2867.067871, 76.068398, 91.10023213, 0.000000, -270.000001124); //gate gesloten 
    Gatelift = CreateObject(3095, -681.501038, 2914.203613, 58.668404, 0.000000, 0.000000, 0.000000); //lift boven 
  
  
 

under onplayercommandtext:

Code:

if (strcmp(cmdtext, "/liftdown", true) == 0) 
    { 
        MoveObject(Gatelift,-681.354858, 2913.921387, 58.961586, 4.5000); 
  
        return 1; 
  } 
  
  
  
if (strcmp("/closegate", cmdtext, true, 10) == 0) 
    { 
  
        MoveObject(Gateclan, -715.559143, 2867.067871, 76.068398, 4.5000); 
  
        return 1; 
  
    } 
if (strcmp("/opengate", cmdtext, true, 10) == 0) 
    { 
  
        MoveObject(Gateclan, -715.540222, 2875.903809, 76.093399, 4.5000); 
  
        return 1; 
  
    } 
    if (strcmp(cmdtext, "/liftup", true) == 0) 
    { 
  
        MoveObject(Gatelift,-681.354858, 2913.921387, 65.961586, 4.5000); 
  
        return 1; 
  
    } 

MTA-SA Convert Help !!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...