10.10.2010, 00:41
(
Последний раз редактировалось [Lsrcr]Rafa; 10.10.2010 в 01:14.
)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/opengate", cmdtext, true, 9))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z); // X Y and Z mean the Coordinates
{
MoveObject(playerid, X, Y, Z, Float:Speed);
SendClientMessage(playerid, collor, "You has open the gate."); // change the color what u want, and the coords X,Y and Z, Float:Speed = opening speed of the gate
}else{
SendClientMessage(playerid, collor, "You are not near the gate."); // change the color what u want.
}
}
