Holsten
Новичок
Пукнуть
PHP:
if(strcmp("/puk", cmd, true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
new Float:PX,Float:PY,Float:PZ;
GetPlayerPos(playerid,PX,PY,PZ);
if(GetPVarInt(playerid,"Pu") == 0)
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i)&& IsPlayerInRangeOfPoint(i, 3.0, PX,PY,PZ))
{
if(playerid != i)
{
ApplyAnimation(i,"PED","GAS_CWR", 4.1, 0, 0, 0, 0, 0 ,1);
PlayAudioStreamForPlayer(i,"http://zvuki-mp3.com/download/26216_48671-lq.mp3");
}
}
}
SetPlayerAttachedObject( playerid, 0, 18694, 1, -0.344386, 0.290451, 1.574107, 177.343902, 359.412261, 0.000000, 1.000000, 1.000000, 1.000000 );
PlayAudioStreamForPlayer(playerid,"http://zvuki-mp3.com/download/26216_48671-lq.mp3");
format(string, sizeof(string), " %s перданул(а)", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPVarInt(playerid,"Pu", 1);
SetTimerEx("Perdeg",3000,false,"i",playerid);
}
}
else if(GetPVarInt(playerid,"Pu") == 1)
{
RemovePlayerAttachedObject(playerid, 0);
format(string, sizeof(string), "У %s закончились газы ", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPVarInt(playerid,"Pu", 0);
}
return 1;
}
Последнее редактирование:
