Need Help on elevator scripts
#1

Sup dude, so today i was mapping a tuning garage and i just started to think
Dude and if i could make an elevator so the enginners could work in the cars in a more effective way?

So then i just oppened my Pawno and realised that i dont know how to make an elevator
Could anyone help me ?, I was just thinking in make one with no command, just a trigger that the player would hit.

(I dont know shit about pawno scripting)
Reply
#2

I've made this script but it doesn't even work

#include <a_samp>
#include <core>
#include <float>
#include <a_samp>
#include <YSI\y_ini>
#include <streamer>

#if defined FILTERSCRIPT

]
public OnPlayerConnect(playerid)
{
new elevator;
new elevator2;

elevator = CreateObject(19872, 2119.37988, -1724.52075, 10.64380, 0.00000, 0.00000, 90.00000);
elevator2 = CreateObject(19872, 2136.81860, -1725.79272, 10.63710, 0.00000, 0.00000, 0.00000);

return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/eup", true) == 0) { // Comando para subir o primeiro elevador
MoveObject(elevator,19872, 2119.37988, -1724.52075, 12.01805, 0.00000, 0.00000, 90.00000); // coordenadas finais do elevador
SendClientMessage(playerid, COLOR_RED, "O elevador esta subindo, Aguarde!"); // Mensagem que indica o funcionamento
return 1;
}
if(strcmp(cmd, "/edown", true) == 0) { // Comando Para descer o elevador
MoveObject(elevator,-1489.413085,2624.461914,60.960697,-2.00); // Posiзгo inicial
SendClientMessage(playerid, COLOR_RED, "O elevador esta descendo, aguarde!"); // Mensagem que indica o funcionamento
return 1;
}
#endif
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)