12.11.2010, 02:08
Okay, I have searched for this, But no luck.. I cannot find it..
So what I want is so if I type in a command, In my situation it is /gateo or /gatec it displays a little /me action to nearby players.
Example:
I drive up to the gate and type /gateo and it starts to open and on the text it says
*Ryan_Fay uses a small remote to open the gates.
Here is my script
command(gateo, playerid, params[])
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1 || Groups[Player[playerid][Group]][CommandTypes] == 4)
{
if(PlayerToPoint(15.0, playerid,-210.80146790, 999.80938721, 20.4211692)
{
MoveDynamicObject(lspdgate, -218.80146790, 1007.80938721, 0.42116928, 1);
return 1;
}
}
}
command(gatec, playerid, params[])
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1 || Groups[Player[playerid][Group]][CommandTypes] == 4)
{
if(PlayerToPoint(15.0, playerid,-210.80146790, 999.80938721, 20.4211692)
{
MoveDynamicObject(lspdgate, -218.80146790, 1007.80938721, 20.42116928, 1);
return 1;
}
}
}
So what I want is so if I type in a command, In my situation it is /gateo or /gatec it displays a little /me action to nearby players.
Example:
I drive up to the gate and type /gateo and it starts to open and on the text it says
*Ryan_Fay uses a small remote to open the gates.
Here is my script
command(gateo, playerid, params[])
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1 || Groups[Player[playerid][Group]][CommandTypes] == 4)
{
if(PlayerToPoint(15.0, playerid,-210.80146790, 999.80938721, 20.4211692)
{
MoveDynamicObject(lspdgate, -218.80146790, 1007.80938721, 0.42116928, 1);
return 1;
}
}
}
command(gatec, playerid, params[])
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1 || Groups[Player[playerid][Group]][CommandTypes] == 4)
{
if(PlayerToPoint(15.0, playerid,-210.80146790, 999.80938721, 20.4211692)
{
MoveDynamicObject(lspdgate, -218.80146790, 1007.80938721, 20.42116928, 1);
return 1;
}
}
}