14.02.2013, 02:54
pawn Код:
CMD:algemar(playerid, params[])
{
if(CSMBR[playerid] == ROTA) // VERIFICA SE Й POLICIAL
{
new PTiD;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
GameTextForPlayer(PTiD, "~b~ALGEMADO!", 3000, 0);
if(sscanf(params, "u", PTiD)) return SendClientMessage(playerid, -1, "Uso: /algemar [ID]");
if(!IsPlayerInRangeOfPoint(PTiD, 1.0, x,y,z)) return SendClientMessage(playerid, -1, "Chegue perto do jogador para algemar.");
GetPlayerPos(PTiD, x, y, z);
SetPlayerAttachedObject(PTiD, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
SetPlayerSpecialAction(PTiD, SPECIAL_ACTION_CUFFED);
PlayerPlaySound(playerid, 5201, x,y,z);
}
else
{
SendClientMessage(playerid, 0xAA3333AA, " VOCК NГO Й POLICIAL! ");
}
return 1;
}