14.06.2011, 11:32
I tried to do ProXdectory(GodFather) the plugin, but there is a need Float-type arguments.
Код:
// SendClienMessageEx(Float:radi, playerid, string[], col1, col2, col3, col4, col5, bool:echo=false)
int _SendClientMessageEx(float radi[], int playerid, char string[], int c1, int c2, int c3, int c4, int c5, int echo, AMX *amx)
{
int index;
if(amx_FindPublic(amx, "SendClientMessageEx", &index) == AMX_ERR_NONE)
{
cell retVal,
amx_addr,
amx_ret,
* amx_physAddr;
int numb;
amx_Push(amx, echo);
amx_Push(amx, c5);
amx_Push(amx, c4);
amx_Push(amx, c3);
amx_Push(amx, c2);
amx_Push(amx, c1);
amx_PushString(amx, &amx_addr, &amx_physAddr, string, 0, 0);
amx_Push(amx, playerid);
amx_PushArray(amx, &amx_addr, &amx_physAddr, radi, 0);
if(amx_Exec(amx, &retVal, &index) == AMX_ERR_NONE)
{
return true;
}
else
{
amx_Release(amx, amx_addr);
return false;
}
return true;
}
return false;
}

