- 0
Problema comanda
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Eklips
Nick: Eklips
Problema: cand dau /barrier nu merge cand dau orice alta comanda merge
Erori / warnings: nu
Lini/script:
Ai incercat sa rezolvi singur ?: da
[pawn]if(strcmp(cmdtext, "/barrier", true) == 0)
{
if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))
{
MoveObject(vama1,54.190098, -1529.675781, 5.085436, 2.5);
MoveObject(vama2,52.703281, -1540.749634, 5.067452, 2.5);
MoveObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);
SetTimer("GateClosse", 4000, 0);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))
{
MoveObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);
SetTimer("GateClosse", 4000, 0);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
return 1;
}
else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))
{
MoveObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);
SetTimer("GateClossse", 4000, 0);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
return 1;
}
else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))
{
MoveObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);
SetTimer("GateClossse", 4000, 0);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You are not at barrier");
}[/pawn]
14 answers to this question
Recommended Posts