25.02.2012, 17:46
Quote:
Important: For servers that use SPECIAL_ACTION_USECELLPHONE. This special action will no longer display the cellphone model in the player's hand. This has been done so that other objects can be used in place of the cellphone, such as the custom phones originally added in 0.3c. To replicate the old behaviour of this special action, please see the script below: Код:
if(strcmp(cmd, "/usecell",true) == 0) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE); SetPlayerAttachedObject(playerid, 4, 330, 6); // 4 = attachment slot, 330 = cellphone model, 6 = right hand return 1; } if(strcmp(cmd, "/stopcell",true) == 0) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE); RemovePlayerAttachedObject(playerid, 4); return 1; } |