Jump to content
  • 0

Cum pun comenzi?


Guest ChiNeZu

Question

Guest ChiNeZu
Posted

Ma puteti ajuta si pe mine cu cateva lucruri credk simple pentru voi :D

1. Sa pun la LSPD bariera si poarta la parcarea aceea subterana si in sf :D

si sa se deschida prin comenzile

/openlsgate

/opensfgate

si /openbarrier

Nu dau prea multe explicatii ca sigur stiti ! despre ce vb :D

Ms :X :D ::)

5 answers to this question

Recommended Posts

  • 0
  • Administrator
Posted

asta la inceputul scriptului

new Gate;
Si asta mai jos,
public OnPlayerCommandText(playerid, cmdtext[])
{
//The Command you need to type to close te gate
if(strcmp(cmdtext, "/closelsgate", true) == 0)
{
    //It will move the object to this coordinates after the command.
MoveObject(Gate, x, y, z, viteza); //Close- Coordonatele portii inchise
return 1;
}
if(strcmp(cmdtext, "/openlsgate", true) == 0)
{
MoveObject(Gate, x, y, z, viteza); //Open- Coordonatele portii deschise
return 1;
}
return 0;
}

x, y, z sunt coordonatele

Ca sa intelegi mai bine intra aici

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

  • 0
Guest David Paul
Posted

Hmm daca nu ma insel tu ai vazut pe B-Zone Portile alea...

Adica [FS]Basic facut de RazR

Poti sa il descarci de pe aici..Din modul postat de RazR Romania RPG :)

  • 0
Guest LowRyder
Posted

Da descarca modu lui RazR si gasesti fiseierul bariera si acolo e gate care iti trebuie tie!

  • 0
Posted

Un exemplu simplu:

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/suicide", cmdtext, true, 10) == 0)

{

SetPlayerHealth(playerid, 0);

return 1;

}

return 0;

}

  • 0
Posted

Ce sa mai descarce basic.amx ? MS celui care a sters [GM]Romanian RPG ;)...

B-Zone: Role Play Server -  77.81.202.202:7777 [url=http://www.game-monitor.com/sa-mp_GameServer/77.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.