25.06.2012, 15:08
pawn Код:
maing = CreateDynamicObject(2938, 1100.59, 2293.79, 11.51, 0.00, 0.00, 0.00,-1,-1,-1,90);
//And so on.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fo", cmdtext, true, 10) == 0)
{
MoveDynamicObject(maing, 1100.59, 2293.79, 7.29,1.5);
return GameTextForPlayer(playerid, "~g~Founders Gate Opening~n~Browsing", 4000, 5);
}
if (strcmp("/fc", cmdtext, true, 10) == 0)
{
MoveDynamicObject(maing, 1100.59, 2293.79, 11.51,1.5);
return GameTextForPlayer(playerid, "~g~Founders Gate Opening~n~Leaving", 4000, 5);
}
if (strcmp("/ft", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1097.90, 2293.19, 10.63);
SetPlayerInterior(playerid,0);
return GameTextForPlayer(playerid, "~g~Teleporting.", 4000, 5);
}
return 0;
}