25.02.2013, 15:54
pawn Код:
CMD:uncuff(playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "[USA]: /uncuff [id]");
if(IsPlayerConnected(targetid))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInRangeOfPoint(targetid, 5.0, x, y, z))
{
if(!SetPlayerAttachedObject(targetid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000))return SendClientMessage(playerid,-1,"[ERROR]: El player no ah utilizado el comando /cuff");
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NONE);
new str[512];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new target[MAX_PLAYER_NAME];
GetPlayerName(targetid, target, sizeof(target));
format(str, sizeof(str), "[INFO]: haz sacado perfectamente ah: %s!",target);
SendClientMessage(playerid, 0xE01B1B, str);
format(str, sizeof(str), " Te han sacado el objeto, [%s]",name);
SendClientMessage(targetid, 0xE01B1B, str);/
return 1;
}
}
return 1;
}
Quote:
error 001: expected token: ";", but found "return" |