14.07.2010, 10:08
I know to create gate in pawno but i dont know how to create gate who will take money like;
when i type /toll gate to open and i to loose -50$
when i type /toll gate to open and i to loose -50$
new gate;
public OnGameModeInit()
{
gate = CreateObject(988, 0.0, 1.1, 10.859, 0.0, 0.0, -90.0); // Gate
return 1;
}
public OnPlayerCommandText(playerid,cmdtext)
{
if (!strcmp(cmdtext,"/open",true))
{
MoveObject(gate, 0.0, 6.1, 10.859, 4.0);
return 1;
}
if (!strcmp(cmdtext,"/close",true))
{
MoveObject(gate, 0.0, 1.1, 10.859, 4.0);
return 1;
}
return 0;
}