Ez alapján írtam.[pawn]#include <a_samp>
new lift;
public OnFilterScriptInit()
{
lift = CreateObject(18553, 226.433655, 1872.436768, 14.026321, 0.0000, 0.0000, 180.0000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/lift-fel\", true) == 0)
{
if(GetPlayerMoney(playerid > 5000))
{
MoveObject(lift, 226.433655, 1872.436768, 11.401323, 2.0);
GivePlayerMoney(playerid, - 5000);
}
else
{
SendClientMessage(playerid, 0x004325, \"Nincs elég pénzed (5000)\");
}
return 1;
}
if(strcmp(cmdtext, \"/lift-le\", true) == 0)
{
if(GetPlayerMoney(playerid > 5000))
{
MoveObject(lift, 226.433655, 1872.436768, 14.026321, 2.0);
GivePlayerMoney(playerid, - 5000);
}
else
{
SendClientMessage(playerid, 0x004325, \"Nincs elég pénzed (5000)\");
}
return 1;
}
return 0;
}[/pawn]